From 7ed5a10b44a95c40ad55ee16d2893097e869f006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 25 Nov 2018 08:23:57 +0100 Subject: Build $(PROJECT).d in a separate $(MAKE) call This avoids the issue where clean will remove a file that was otherwise generated and won't be regenerated. This might also help with parallel building. --- core/erlc.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/erlc.mk') diff --git a/core/erlc.mk b/core/erlc.mk index 39d1553..cf930c9 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -54,10 +54,12 @@ ifneq ($(wildcard src/),) # Targets. ifeq ($(wildcard ebin/test),) -app:: deps $(PROJECT).d +app:: deps + $(verbose) $(MAKE) --no-print-directory $(PROJECT).d $(verbose) $(MAKE) --no-print-directory app-build else -app:: clean deps $(PROJECT).d +app:: clean deps + $(verbose) $(MAKE) --no-print-directory $(PROJECT).d $(verbose) $(MAKE) --no-print-directory app-build endif -- cgit v1.2.3