diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-05 07:39:04 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-05 07:39:04 -0600 |
commit | 34019f1e40633b5ab220f2b4694a46ae38bc78ae (patch) | |
tree | b83f2b1b148e7a5e0c23b3e894b78437a12f90e2 /apps/import | |
parent | abd964810589931f69a519d61d1efa297b18f074 (diff) | |
download | px4-nuttx-34019f1e40633b5ab220f2b4694a46ae38bc78ae.tar.gz px4-nuttx-34019f1e40633b5ab220f2b4694a46ae38bc78ae.tar.bz2 px4-nuttx-34019f1e40633b5ab220f2b4694a46ae38bc78ae.zip |
Add the .config file to the export package
Diffstat (limited to 'apps/import')
-rw-r--r-- | apps/import/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/import/Makefile b/apps/import/Makefile index 0828234c1..a0ce283da 100644 --- a/apps/import/Makefile +++ b/apps/import/Makefile @@ -40,14 +40,21 @@ Q ?= @ # Sub-directories from the NuttX export package SUBDIRS = arch build include libs startup tmp +FILES = .config # DELDIR - Delete one directory ifeq ($(CONFIG_WINDOWS_NATIVE),y) +define DELFILE + $(Q) if exist $1 (del /f /q $1) +endef define DELDIR $(Q) if exist $(1) (rmdir /q /s $(1)) endef else +define DELFILE + $(Q) rm -f $1 +endef define DELDIR $(Q) rm -rf $(1) endef @@ -66,3 +73,5 @@ clean: distclean: $(foreach SDIR, $(SUBDIRS), $(call DELDIR, $(SDIR))) + $(foreach FILE, $(FILES), $(call DELFILE, $(FILE))) + |