scripts: update distclean

The toolchains are now built in .build/ rather than in targets/
so distclean has to get rid of that.

We also clean up the old dir, as users may have old samples that
still refer to the old location.

Do not hide messages during distclean, and do not ignore errors.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2010-10-05 23:59:16 +02:00
parent a388c5b933
commit 077e46ff10

View File

@ -171,6 +171,6 @@ PHONY += distclean
distclean:: clean
@$(ECHO) " CLEAN .config"
$(SILENT)rm -f .config .config.* ..config*
@$(ECHO) " CLEAN targets"
$(SILENT)chmod -R u+w targets >/dev/null 2>&1 || true
$(SILENT)rm -rf targets
@$(ECHO) " CLEAN build dir"
$(SILENT)chmod -R u+w targets .build
$(SILENT)rm -rf targets .build