summaryrefslogtreecommitdiffstats
path: root/apps/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-19 15:02:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-19 15:02:01 +0000
commit4c0055e628afb43fa2b2919376ab96a82ede6af8 (patch)
tree828a641d8c7195ac3073ea3daa81755dbc322ef4 /apps/Makefile
parentbc284a1fde0acaadb4c88bee73f9a4d85323196b (diff)
Move VSN apps to apps/vsn
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3397 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile
index b9a067c26a..ce00bb667a 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -42,8 +42,14 @@ endif
# Application Directories
+# SUBDIRS is the list of all directories containing Makefiles. It is used
+# only for cleaning.
+
+SUBDIRS = nshlib vsn
+
# we use a non-existing .built_always to guarantee that Makefile
# always walks into the sub-directories and asks for build
+
BUILTIN_APPS_BUILT =
BUILTIN_APPS_DIR =
@@ -130,15 +136,21 @@ $(BIN): $(OBJS) $(BUILTIN_APPS_BUILT)
depend: .depend
+define MAKECLEAN
+ @(MAKE) -C $1 $2 TOPDIR="$(TOPDIR)"
+endef
+
clean:
@rm -f $(BIN) *~ .*.swp *.o libapps.a
$(call CLEAN)
+ $(foreach DIR, $(SUBDIRS), $(eval $(call MAKECLEAN,$(DIR),clean)))
distclean: clean
@rm -f .config
@rm -f Make.dep .depend
@rm -f exec_nuttapp_list.h
@rm -f exec_nuttapp_proto.h
+ $(foreach DIR, $(SUBDIRS), $(eval $(call MAKECLEAN,$(DIR),distclean)))
-include Make.dep