diff options
author | Loïc Hoguin <[email protected]> | 2015-07-02 18:35:44 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-07-02 18:35:44 +0200 |
commit | 6a3bf18655384cbd534308104d82b1ae0f66c228 (patch) | |
tree | 65a4d3a9c0910774eb664ac5895af18bb623cbf1 /core/test.mk | |
parent | 061d4491da416ad23a8d470a4198a0cd608b7e0f (diff) | |
download | erlang.mk-6a3bf18655384cbd534308104d82b1ae0f66c228.tar.gz erlang.mk-6a3bf18655384cbd534308104d82b1ae0f66c228.tar.bz2 erlang.mk-6a3bf18655384cbd534308104d82b1ae0f66c228.zip |
Reduce dependency on external programs
This commit implements a core_find and core_ls function that
can be used to list files recursively or not.
A few other minute changes are included and a couple hacks
removed.
Diffstat (limited to 'core/test.mk')
-rw-r--r-- | core/test.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/test.mk b/core/test.mk index 7dd5d61..3832996 100644 --- a/core/test.mk +++ b/core/test.mk @@ -23,10 +23,10 @@ test-deps: $(ALL_TEST_DEPS_DIRS) @for dep in $(ALL_TEST_DEPS_DIRS) ; do $(MAKE) -C $$dep; done endif -ifneq ($(strip $(TEST_DIR)),) +ifneq ($(wildcard $(TEST_DIR)),) test-dir: $(gen_verbose) erlc -v $(TEST_ERLC_OPTS) -I include/ -o $(TEST_DIR) \ - $(wildcard $(TEST_DIR)/*.erl $(TEST_DIR)/*/*.erl) -pa ebin/ + $(call core_find,$(TEST_DIR)/,*.erl) -pa ebin/ endif ifeq ($(wildcard ebin/test),) |