mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-24 01:28:44 +00:00
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>
This commit is contained in:
3
ct-ng.in
3
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
|
||||
|
Reference in New Issue
Block a user