aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ct.mk8
-rw-r--r--plugins/erlydtl.mk2
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/ct.mk b/plugins/ct.mk
index f6cc590..71a61de 100644
--- a/plugins/ct.mk
+++ b/plugins/ct.mk
@@ -6,11 +6,13 @@
# Configuration.
CT_OPTS ?=
+
ifneq ($(wildcard $(TEST_DIR)),)
- CT_SUITES ?= $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl))))
-else
- CT_SUITES ?=
+ifndef CT_SUITES
+CT_SUITES := $(sort $(subst _SUITE.erl,,$(notdir $(call core_find,$(TEST_DIR)/,*_SUITE.erl))))
+endif
endif
+CT_SUITES ?=
# Core targets.
diff --git a/plugins/erlydtl.mk b/plugins/erlydtl.mk
index dd9621e..7c09ae3 100644
--- a/plugins/erlydtl.mk
+++ b/plugins/erlydtl.mk
@@ -16,7 +16,7 @@ dtl_verbose = $(dtl_verbose_$(V))
# Core targets.
DTL_PATH := $(abspath $(DTL_PATH))
-DTL_FILES = $(call core_find,$(DTL_PATH),*.dtl)
+DTL_FILES := $(sort $(call core_find,$(DTL_PATH),*.dtl))
ifneq ($(DTL_FILES),)