diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/test.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/test.mk b/core/test.mk index d7b0bfe..12ff208 100644 --- a/core/test.mk +++ b/core/test.mk @@ -29,6 +29,11 @@ test-dir: $(call core_find,$(TEST_DIR)/,*.erl) -pa ebin/ endif +ifeq ($(wildcard src),) +test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS) +test-build:: clean deps test-deps + $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)" +else ifeq ($(wildcard ebin/test),) test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS) test-build:: clean deps test-deps $(PROJECT).d @@ -46,3 +51,4 @@ clean-test-dir: ifneq ($(wildcard $(TEST_DIR)/*.beam),) $(gen_verbose) rm -f $(TEST_DIR)/*.beam endif +endif |