Eye-candy when {,dist}clean.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 21 16:13:46 2008 +0000 (2008-10-21)
changeset 953edd62c121892
parent 952 4db000267992
child 954 a9e7de970e5e
Eye-candy when {,dist}clean.

/trunk/tools/tools.mk | 1 1 0 0 +
/trunk/ct-ng.in | 16 12 4 0 ++++++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)
ct-ng.in
tools/tools.mk
     1.1 --- a/ct-ng.in	Tue Oct 21 09:16:00 2008 +0000
     1.2 +++ b/ct-ng.in	Tue Oct 21 16:13:46 2008 +0000
     1.3 @@ -24,6 +24,9 @@
     1.4  # This is crosstool-NG version string
     1.5  export CT_VERSION:=@@CT_VERSION@@
     1.6  
     1.7 +# Don't go parallel
     1.8 +.NOTPARALLEL:
     1.9 +
    1.10  export CT_STOP:=$(STOP)
    1.11  export CT_RESTART:=$(RESTART)
    1.12  
    1.13 @@ -38,6 +41,11 @@
    1.14      ifeq ($(strip $(V)),1)
    1.15        SILENT=
    1.16        ECHO=:
    1.17 +    else
    1.18 +      ifeq ($(strip $(V)),2)
    1.19 +        SILENT=
    1.20 +        ECHO=echo
    1.21 +      endif
    1.22      endif
    1.23    endif
    1.24  endif
    1.25 @@ -137,13 +145,13 @@
    1.26  
    1.27  PHONY += clean
    1.28  clean::
    1.29 -	$(SILENT)rm -f .config.*
    1.30 +	@$(ECHO) "  CLEAN log"
    1.31 +	$(SILENT)rm -f log.* .config.* ..config*
    1.32  
    1.33  PHONY += distclean
    1.34  distclean:: clean
    1.35 -	@$(ECHO) "  CLEAN .config log"
    1.36 -	$(SILENT)rm -f .config* ..config.tmp
    1.37 -	$(SILENT)rm -f log.*
    1.38 +	@$(ECHO) "  CLEAN .config"
    1.39 +	$(SILENT)rm -f .config .config.* ..config*
    1.40  	@$(ECHO) "  CLEAN targets"
    1.41  	$(SILENT)chmod -R u+w targets >/dev/null 2>&1 || true
    1.42  	$(SILENT)rm -rf targets
     2.1 --- a/tools/tools.mk	Tue Oct 21 09:16:00 2008 +0000
     2.2 +++ b/tools/tools.mk	Tue Oct 21 16:13:46 2008 +0000
     2.3 @@ -28,4 +28,5 @@
     2.4  	@echo  '  updatetools        - Update the config tools'
     2.5  
     2.6  distclean::
     2.7 +	@$(ECHO) "  CLEAN tools"
     2.8  	$(SILENT)[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/tools