From 2abf0f50e1556f1aeea500c4d2b1df58b1d09aee Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 26 Feb 2020 14:17:00 +0900 Subject: [PATCH] examples/elf/tests: Ensure "build" before "install" --- examples/elf/tests/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/elf/tests/Makefile b/examples/elf/tests/Makefile index ac4ba4a0c..fd9782196 100644 --- a/examples/elf/tests/Makefile +++ b/examples/elf/tests/Makefile @@ -76,16 +76,16 @@ else endif define DIR_template -$(1)_$(2): +$(1)_$(2): $(4) +$(Q) $(MAKE) -C $(1) $(3) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" FSIMG_DIR="$(FSIMG_DIR)" CROSSDEV=$(CROSSDEV) endef all: $(FSIMG_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate -$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) -$(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) -$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install))) +$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build,all,))) +$(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean,))) +$(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install,$(DIR)_build))) # Build program(s) in each sud-directory