diff options
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) |