From bd8723cd92bd039855a011159ae34c2ae07b63ad Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 6 Oct 2010 22:54:48 +0200 Subject: scripts: fix distclean Do not fail in case either one or both of target/ and .build/ directories are missing. Signed-off-by: "Yann E. MORIN" diff --git a/ct-ng.in b/ct-ng.in index bbd7b62..699d045 100644 --- a/ct-ng.in +++ b/ct-ng.in @@ -172,5 +172,6 @@ distclean:: clean @$(ECHO) " CLEAN .config" $(SILENT)rm -f .config .config.* ..config* @$(ECHO) " CLEAN build dir" - $(SILENT)chmod -R u+w targets .build + $(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