Use $(MAKE) for recursive calls, don't directly use $(CT_NG).
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 29 10:31:15 2008 +0000 (2008-10-29)
changeset 101045316336f45f
parent 1009 0f5c2e26ae0e
child 1011 c81245bef5f9
Use $(MAKE) for recursive calls, don't directly use $(CT_NG).
Pass on the V variable on the $(MAKE) command lines.

/trunk/steps.mk | 6 3 3 0 +++---
/trunk/ct-ng.in | 2 1 1 0 +-
2 files changed, 4 insertions(+), 4 deletions(-)
ct-ng.in
steps.mk
     1.1 --- a/ct-ng.in	Wed Oct 29 09:42:52 2008 +0000
     1.2 +++ b/ct-ng.in	Wed Oct 29 10:31:15 2008 +0000
     1.3 @@ -123,7 +123,7 @@
     1.4  	$(SILENT)$(CT_LIB_DIR)/scripts/crosstool.sh
     1.5  
     1.6  build.%:
     1.7 -	$(SILENT)$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
     1.8 +	$(SILENT)$(MAKE) -rf $(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
     1.9  
    1.10  PHONY += tarball
    1.11  #tarball:
     2.1 --- a/steps.mk	Wed Oct 29 09:42:52 2008 +0000
     2.2 +++ b/steps.mk	Wed Oct 29 10:31:15 2008 +0000
     2.3 @@ -48,10 +48,10 @@
     2.4  # This part deals with executing steps
     2.5  
     2.6  $(CT_STEPS):
     2.7 -	$(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$@ STOP=$@ build
     2.8 +	$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$@ STOP=$@ build
     2.9  
    2.10  $(patsubst %,+%,$(CT_STEPS)):
    2.11 -	$(SILENT)$(MAKE) -rf $(CT_NG) STOP=$(patsubst +%,%,$@) build
    2.12 +	$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) STOP=$(patsubst +%,%,$@) build
    2.13  
    2.14  $(patsubst %,%+,$(CT_STEPS)):
    2.15 -	$(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$(patsubst %+,%,$@) build
    2.16 +	$(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$(patsubst %+,%,$@) build