summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 18:54:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-17 18:54:53 +0000
commita444a16f4746959a1332cb21749fbdf9a31df091 (patch)
treed220ebef3bfba64591298b4c51a0c0dd6e10ae0b /apps/Makefile
parentb023c1b10ea54b6fc54f0ec747c766187c58190f (diff)
downloadpx4-nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.tar.gz
px4-nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.tar.bz2
px4-nuttx-a444a16f4746959a1332cb21749fbdf9a31df091.zip
Most of the changes needed to support Windows native clean; distclean is has a problem
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5367 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 7e7d52a40..522731722 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -169,13 +169,12 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) for %%G in ($(SUBDIRS)) do ( \
$(MAKE) -C %%G clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \
)
- $(Q) rm -f $(BIN) *~ .*.swp *.o
else
$(Q) for dir in $(SUBDIRS) ; do \
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
done
- $(Q) rm -f $(BIN) *~ .*.swp *.o
endif
+ $(call DELFILE $(BIN))
$(call CLEAN)
distclean: # clean
@@ -183,7 +182,9 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) for %%G in ($(SUBDIRS)) do ( \
$(MAKE) -C %%G distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \
)
- $(Q) rm -f .config .context .depend
+ $(call DELFILE .config)
+ $(call DELFILE .context)
+ $(call DELFILE .depend)
$(Q) ( if exist external ( \
echo ********************************************************" \
echo * The external directory/link must be removed manually *" \
@@ -193,7 +194,9 @@ else
$(Q) for dir in $(SUBDIRS) ; do \
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
done
- $(Q) rm -f .config .context .depend
+ $(call DELFILE .config)
+ $(call DELFILE .context)
+ $(call DELFILE .depend)
$(Q) ( if [ -e external ]; then \
echo "********************************************************"; \
echo "* The external directory/link must be removed manually *"; \