1.1 --- a/steps.mk Wed Oct 15 21:29:56 2008 +0000
1.2 +++ b/steps.mk Tue Oct 28 15:07:28 2008 +0000
1.3 @@ -1,6 +1,17 @@
1.4 # Makefile for each steps
1.5 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
1.6
1.7 +# ----------------------------------------------------------
1.8 +# This is the steps help entry
1.9 +
1.10 +help-build::
1.11 + @echo ' list-steps - List all build steps'
1.12 +
1.13 +# ----------------------------------------------------------
1.14 +# The steps list
1.15 +
1.16 +# Please keep the last line with a '\' and keep the folowing empy line:
1.17 +# it helps when diffing and merging.
1.18 CT_STEPS := libc_check_config \
1.19 kernel_headers \
1.20 gmp \
1.21 @@ -19,8 +30,23 @@
1.22 tools \
1.23 debug \
1.24
1.25 +# Make the list available to sub-processes (scripts/crosstool.sh needs it)
1.26 export CT_STEPS
1.27
1.28 +# Print the steps list
1.29 +PHONY += list-steps
1.30 +list-steps:
1.31 + @echo 'Available build steps, in order:'
1.32 + @for step in $(CT_STEPS); do \
1.33 + echo " - $${step}"; \
1.34 + done
1.35 + @echo 'Use "<step>" as action to execute only that step.'
1.36 + @echo 'Use "+<step>" as action to execute up to that step.'
1.37 + @echo 'Use "<step>+" as action to execute from that step onward.'
1.38 +
1.39 +# ----------------------------------------------------------
1.40 +# This part deals with executing steps
1.41 +
1.42 $(CT_STEPS):
1.43 $(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$@ STOP=$@ build
1.44
1.45 @@ -29,15 +55,3 @@
1.46
1.47 $(patsubst %,%+,$(CT_STEPS)):
1.48 $(SILENT)$(MAKE) -rf $(CT_NG) RESTART=$(patsubst %+,%,$@) build
1.49 -
1.50 -help-build::
1.51 - @echo ' list-steps - List all build steps'
1.52 -
1.53 -list-steps:
1.54 - @echo 'Available build steps, in order:'
1.55 - @for step in $(CT_STEPS); do \
1.56 - echo " - $${step}"; \
1.57 - done
1.58 - @echo 'Use "<step>" as action to execute only that step.'
1.59 - @echo 'Use "+<step>" as action to execute up to that step.'
1.60 - @echo 'Use "<step>+" as action to execute from that step onward.'