diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-18 20:59:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-18 20:59:30 +0000 |
commit | a98248b591a69249c97849745788737d25dc3731 (patch) | |
tree | 18ba50c73d2f9b7fdbf7504bcdc004c89e35ab7d /nuttx/tools | |
parent | e7b122cc626cc454d9af49e6d6928a46d667fd1f (diff) | |
download | px4-firmware-a98248b591a69249c97849745788737d25dc3731.tar.gz px4-firmware-a98248b591a69249c97849745788737d25dc3731.tar.bz2 px4-firmware-a98248b591a69249c97849745788737d25dc3731.zip |
Fix typol in Config.mk that would effect non-Windows builds
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5369 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools')
-rw-r--r-- | nuttx/tools/Config.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk index aafb58f35..300df7a6a 100644 --- a/nuttx/tools/Config.mk +++ b/nuttx/tools/Config.mk @@ -182,11 +182,23 @@ define DELFILE $(Q) if exist $1 (del /f /q $1) endef else -define CLEAN +define DELFILE $(Q) rm -f $1 endef endif +# DELDIR - Delect one directory + +ifeq ($(CONFIG_WINDOWS_NATIVE),y) +define DELDIR + $(Q) if exist $1 (rmdir /q /s $1) +endef +else +define DELDIR + $(Q) rm -rf $1 +endef +endif + # CLEAN - Default clean target ifeq ($(CONFIG_WINDOWS_NATIVE),y) |