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
This commit is contained in:
Harald Welte 2017-12-12 17:31:25 +01:00
parent 5e3f7c20cd
commit f6f78461f6
1 changed files with 2 additions and 2 deletions

View File

@ -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