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(-)
1 # Makefile for each steps
2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
4 # ----------------------------------------------------------
5 # This is the steps help entry
8 @echo ' list-steps - List all build steps'
10 # ----------------------------------------------------------
13 # Please keep the last line with a '\' and keep the folowing empy line:
14 # it helps when diffing and merging.
15 CT_STEPS := libc_check_config \
33 # Make the list available to sub-processes (scripts/crosstool.sh needs it)
36 # Print the steps list
39 @echo 'Available build steps, in order:'
40 @for step in $(CT_STEPS); do \
43 @echo 'Use "<step>" as action to execute only that step.'
44 @echo 'Use "+<step>" as action to execute up to that step.'
45 @echo 'Use "<step>+" as action to execute from that step onward.'
47 # ----------------------------------------------------------
48 # This part deals with executing steps
51 $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$@ STOP=$@ build
53 $(patsubst %,+%,$(CT_STEPS)):
54 $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) STOP=$(patsubst +%,%,$@) build
56 $(patsubst %,%+,$(CT_STEPS)):
57 $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$(patsubst %+,%,$@) build