summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-12 17:31:25 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-12 17:34:42 +0100
commitf6f78461f611367432ab3095e90237a86820735d (patch)
tree2969cc826af09aa1c7c2a3e37981a376865fdae5 /Makefile
parent5e3f7c20cdc2222262194175ee612b1d76d5cb3a (diff)
Makefile: ensure that 'compile' targets depend on 'deps'
This will ensure that a 'make compile' on a freshly-cloned repo will first clone all the deps to ensure a successful build Change-Id: I6583a42758b5682b04d1e90585063904508aa3a9
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6a470a0..80211de 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ endef
define DIR_compile_template
.PHONY: $(1)/compile
-$(1)/compile: $(1)/Makefile
+$(1)/compile: deps $(1)/Makefile
$(MAKE) -C $(1) compile
endef
@@ -45,7 +45,7 @@ endef
define DIR_all_template
$(1): $(1)/all
.PHONY: $(1)/all
-$(1)/all: $(1)/Makefile
+$(1)/all: deps $(1)/Makefile
$(MAKE) -C $(1) compile
$(MAKE) $(PARALLEL_MAKE) -C $(1)
endef