Review at https://gerrit.osmocom.org/5301
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
---
M Makefile
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks
refs/changes/01/5301/1
diff --git a/Makefile b/Makefile
index 6a470a0..80211de 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@
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 @@
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
--
To view, visit https://gerrit.osmocom.org/5301
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6583a42758b5682b04d1e90585063904508aa3a9
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <[email protected]>