You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/02/27 10:43:06 UTC

[incubator-nuttx-apps] 02/02: examples/nxflat/tests: Ensure "build" before "install"

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch pr106
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 740cb5b8d975b04c2c20b60345ed981a7100e9c2
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Thu Feb 27 18:09:57 2020 +0800

    examples/nxflat/tests: Ensure "build" before "install"
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 examples/nxflat/tests/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/nxflat/tests/Makefile b/examples/nxflat/tests/Makefile
index 544cd02..d065bbc 100644
--- a/examples/nxflat/tests/Makefile
+++ b/examples/nxflat/tests/Makefile
@@ -54,16 +54,16 @@ ROMFS_DIRLIST	= $(TESTS_DIR)/dirlist.h
 SYMTAB		= $(TESTS_DIR)/symtab.h
 
 define DIR_template
-$(1)_$(2):
+$(1)_$(2): $(4)
 	+$(Q) $(MAKE) -C $(1) $(3) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" ROMFS_DIR="$(ROMFS_DIR)" CROSSDEV=$(CROSSDEV)
 endef
 
 all: $(ROMFS_HDR) $(ROMFS_DIRLIST) $(SYMTAB)
 .PHONY: all build clean install populate
 
-$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all)))
-$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean)))
-$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install)))
+$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build,all,)))
+$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean,)))
+$(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),install,install,$(DIR)_build)))
 
 # Build program(s) in each sud-directory