From 59d7c7dd647c045fd616c58e5816b706534bca2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 5 Dec 2018 20:29:47 +0100 Subject: Implement the dep_built optimization for test/shell deps --- core/test.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/test.mk') diff --git a/core/test.mk b/core/test.mk index a9481fd..3cc9d0a 100644 --- a/core/test.mk +++ b/core/test.mk @@ -20,7 +20,14 @@ ifneq ($(SKIP_DEPS),) test-deps: else test-deps: $(ALL_TEST_DEPS_DIRS) - $(verbose) set -e; for dep in $(ALL_TEST_DEPS_DIRS) ; do $(MAKE) -C $$dep IS_DEP=1; done + $(verbose) set -e; for dep in $(ALL_TEST_DEPS_DIRS) ; do \ + if [ -z "$(strip $(FULL))" ] && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \ + :; \ + else \ + $(MAKE) -C $$dep IS_DEP=1; \ + if [ ! -L $$dep ] && [ -d $$dep/ebin ]; then touch $$dep/ebin/dep_built; fi; \ + fi \ + done endif ifneq ($(wildcard $(TEST_DIR)),) -- cgit v1.2.3