summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-10-06 20:54:48 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-10-06 20:54:48 (GMT)
commitbd8723cd92bd039855a011159ae34c2ae07b63ad (patch)
tree019a364273611173af8fa88be3a16733bfb9a0f1 /ct-ng.in
parentb2b285e7237e54ae8480bd771cd9214871035b87 (diff)
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" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in3
1 files changed, 2 insertions, 1 deletions
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