yann@136: # Makefile for each steps yann@136: # Copyright 2006 Yann E. MORIN yann@136: yann@1001: # ---------------------------------------------------------- yann@1001: # This is the steps help entry yann@1001: yann@1001: help-build:: yann@1001: @echo ' list-steps - List all build steps' yann@1001: yann@1015: help-env:: yann@1015: @echo ' STOP - Stop the build just after this step' yann@1015: @echo ' RESTART - Restart the build just before this step' yann@1015: yann@1001: # ---------------------------------------------------------- yann@1001: # The steps list yann@1001: yann@1001: # Please keep the last line with a '\' and keep the folowing empy line: yann@1001: # it helps when diffing and merging. yann@461: CT_STEPS := libc_check_config \ yann@461: kernel_headers \ yann@466: gmp \ yann@466: mpfr \ yann@461: binutils \ yann@461: cc_core_pass_1 \ yann@461: libc_headers \ yann@461: libc_start_files \ yann@461: cc_core_pass_2 \ yann@461: libc \ yann@461: cc \ yann@461: libc_finish \ yann@602: gmp_target \ yann@602: mpfr_target \ yann@1034: binutils_target \ yann@461: tools \ yann@461: debug \ yann@461: yann@1143: # Make the list available to sub-processes (scripts/crosstool-NG.sh needs it) yann@461: export CT_STEPS yann@181: yann@1001: # Print the steps list yann@1001: PHONY += list-steps yann@1001: list-steps: yann@1001: @echo 'Available build steps, in order:' yann@1001: @for step in $(CT_STEPS); do \ yann@1001: echo " - $${step}"; \ yann@1001: done yann@1001: @echo 'Use "" as action to execute only that step.' yann@1001: @echo 'Use "+" as action to execute up to that step.' yann@1001: @echo 'Use "+" as action to execute from that step onward.' yann@1001: yann@1001: # ---------------------------------------------------------- yann@1001: # This part deals with executing steps yann@1001: yann@181: $(CT_STEPS): yann@1010: $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$@ STOP=$@ build yann@136: yann@304: $(patsubst %,+%,$(CT_STEPS)): yann@1010: $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) STOP=$(patsubst +%,%,$@) build yann@136: yann@304: $(patsubst %,%+,$(CT_STEPS)): yann@1010: $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) RESTART=$(patsubst %+,%,$@) build