diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-06-28 21:01:33 +0200 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-06-28 21:05:09 +0200 |
commit | e20dcac9ddc16ab83ab4654cbf487e5a9f6e7cd6 (patch) | |
tree | 26b388eb6fd09d6afb9b7eedd6642bbce70e903b /ct-ng.in | |
parent | 645a5c33ae4f11a07eca531617d9d597f7b695c3 (diff) | |
download | crosstool-ng-e20dcac9ddc16ab83ab4654cbf487e5a9f6e7cd6.tar.gz crosstool-ng-e20dcac9ddc16ab83ab4654cbf487e5a9f6e7cd6.tar.bz2 crosstool-ng-e20dcac9ddc16ab83ab4654cbf487e5a9f6e7cd6.zip |
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.in | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |