From e20dcac9ddc16ab83ab4654cbf487e5a9f6e7cd6 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 28 Jun 2014 21:01:33 +0200 Subject: 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 Signed-off-by: "Yann E. MORIN" 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 -- cgit v0.10.2-6-g49f6