|
@@ -41,14 +41,14 @@ test-build:: ERLC_OPTS=$(TEST_ERLC_OPTS)
|
|
|
test-build:: $(if $(wildcard src),$(if $(wildcard ebin/test),,clean)) $(if $(IS_APP),,deps test-deps)
|
|
|
# We already compiled everything when IS_APP=1.
|
|
|
ifndef IS_APP
|
|
|
-ifneq ($(wildcard $(TEST_DIR)),)
|
|
|
- $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
-endif
|
|
|
ifneq ($(wildcard src),)
|
|
|
$(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
$(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
$(gen_verbose) touch ebin/test
|
|
|
endif
|
|
|
+ifneq ($(wildcard $(TEST_DIR)),)
|
|
|
+ $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
+endif
|
|
|
endif
|
|
|
|
|
|
# Roughly the same as test-build, but when IS_APP=1.
|
|
@@ -56,14 +56,14 @@ endif
|
|
|
ifdef IS_APP
|
|
|
test-build-app:: ERLC_OPTS=$(TEST_ERLC_OPTS)
|
|
|
test-build-app:: deps test-deps
|
|
|
-ifneq ($(wildcard $(TEST_DIR)),)
|
|
|
- $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
-endif
|
|
|
ifneq ($(wildcard src),)
|
|
|
$(verbose) $(MAKE) --no-print-directory $(PROJECT).d ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
$(verbose) $(MAKE) --no-print-directory app-build ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
$(gen_verbose) touch ebin/test
|
|
|
endif
|
|
|
+ifneq ($(wildcard $(TEST_DIR)),)
|
|
|
+ $(verbose) $(MAKE) --no-print-directory test-dir ERLC_OPTS="$(call escape_dquotes,$(TEST_ERLC_OPTS))"
|
|
|
+endif
|
|
|
endif
|
|
|
|
|
|
clean:: clean-test-dir
|