[PATCH] osmo-ttcn3-hacks[master]: Makefile: ensure that 'compile' targets depend on 'deps'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Dec 12 16:34:45 UTC 2017


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 <laforge at gnumonks.org>



More information about the gerrit-log mailing list