summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-06-28 19:01:33 (GMT)
committerYann E. MORIN <yann.morin.1998@free.fr>2014-06-28 19:05:09 (GMT)
commite20dcac9ddc16ab83ab4654cbf487e5a9f6e7cd6 (patch)
tree26b388eb6fd09d6afb9b7eedd6642bbce70e903b /ct-ng.in
parent645a5c33ae4f11a07eca531617d9d597f7b695c3 (diff)
ct-ng: 'clean' removes the build dir
It makes more sense to remove the build dir on 'clean' rather than on 'distclean', since the latter also trashes the .config file. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 84f5c10..533f4ef 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -170,13 +170,13 @@ version:
PHONY += clean
clean::
@$(ECHO) " CLEAN log"
- $(SILENT)rm -f build.log .config.* ..config*
+ $(SILENT)rm -f build.log
+ @$(ECHO) " CLEAN build dir"
+ $(SILENT)[ ! -d targets ] || chmod -R u+w targets
+ $(SILENT)[ ! -d .build ] || chmod -R u+w .build
+ $(SILENT)rm -rf targets .build
PHONY += distclean
distclean:: clean
@$(ECHO) " CLEAN .config"
$(SILENT)rm -f .config .config.* ..config*
- @$(ECHO) " CLEAN build dir"
- $(SILENT)[ ! -d targets ] || chmod -R u+w targets
- $(SILENT)[ ! -d .build ] || chmod -R u+w .build
- $(SILENT)rm -rf targets .build