diff options
author | Loïc Hoguin <[email protected]> | 2016-10-30 00:13:42 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-10-30 00:13:42 +0300 |
commit | 373122de2f3e3a6e937e527044ae3b62ba939c96 (patch) | |
tree | 9bdea11465eb4621af14fdbc1391872dd1774d15 /plugins/ct.mk | |
parent | 1c06eab8369fae4aed56a9583c1ddb8a49e66462 (diff) | |
download | erlang.mk-373122de2f3e3a6e937e527044ae3b62ba939c96.tar.gz erlang.mk-373122de2f3e3a6e937e527044ae3b62ba939c96.tar.bz2 erlang.mk-373122de2f3e3a6e937e527044ae3b62ba939c96.zip |
Use := instead of = for list of files
This will make sure we don't look twice.
Also make a single call to find the common file formats
rather than many calls.
Diffstat (limited to 'plugins/ct.mk')
-rw-r--r-- | plugins/ct.mk | 8 |
1 files changed, 5 insertions, 3 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. |