diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-24 00:28:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-24 00:28:50 +0000 |
commit | 1e10d8d0d3733432f69d86948645896295864d42 (patch) | |
tree | a678b793c7a420cedb58e9f99ca4b39fea502fd6 /apps/Makefile | |
parent | fe55a3d3121630eda2b910bac6b051a38e3b5f60 (diff) | |
download | px4-nuttx-1e10d8d0d3733432f69d86948645896295864d42.tar.gz px4-nuttx-1e10d8d0d3733432f69d86948645896295864d42.tar.bz2 px4-nuttx-1e10d8d0d3733432f69d86948645896295864d42.zip |
apps/ initialization now occurs during the earlier context build phase
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3412 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/Makefile b/apps/Makefile index 5c4e8dc09..2735759c9 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -91,7 +91,7 @@ BIN = libapps$(LIBEXT) # Build targets all: $(BIN) -.PHONY: $(BUILTIN_APPS_BUILT) .depend depend clean distclean +.PHONY: $(BUILTIN_APPS_BUILT) context depend clean distclean $(BUILTIN_APPS_BUILT): @for dir in $(BUILTIN_APPS_DIR) ; do \ @@ -103,7 +103,16 @@ $(BIN): $(BUILTIN_APPS_BUILT) $(call ARCHIVE, $@, $${obj}); \ done ; ) -.depend: Makefile $(SRCS) +.context: + @for dir in $(BUILTIN_APPS_DIR) ; do \ + rm -f $$dir/.context ; \ + $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR=$(APPDIR) context ; \ + done + @touch $@ + +context: .context + +.depend: context Makefile $(SRCS) @for dir in $(BUILTIN_APPS_DIR) ; do \ rm -f $$dir/.depend ; \ $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR=$(APPDIR) depend ; \ @@ -123,5 +132,5 @@ distclean: clean @for dir in $(SUBDIRS) ; do \ $(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR=$(APPDIR); \ done - @rm -f .config .depend + @rm -f .config .context .depend |