Add the possibility to stop after a specified step.
Update the Makefile help and the documentation accordingly.
1 # Makefile for crosstool-NG.
2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
4 # Don't print directory as we descend into them
5 MAKEFLAGS += --no-print-directory
7 export CT_TOP_DIR=$(shell pwd)
9 # This is crosstool-ng version string
10 export CT_VERSION=$(shell cat $(CT_TOP_DIR)/version)
12 export CT_STOP=$(STOP)
13 export CT_RESTART=$(RESTART)
18 HOST_CC = gcc -funsigned-char
21 @echo 'Available make targets:'
24 include $(CT_TOP_DIR)/kconfig/Makefile
25 include $(CT_TOP_DIR)/samples/Makefile
28 @echo 'Build targets:'
29 @echo '* build - Build the toolchain'
30 @echo ' clean - Remove generated files'
31 @echo ' distclean - Remove generated files, configuration and build directories'
33 include $(CT_TOP_DIR)/tools/Makefile
36 @echo 'Distribution targets:'
37 @echo ' tarball - Build a tarball of the configured toolchain'
39 @echo 'Environement variables:'
40 @echo ' STOP - Stop the build just after this step'
41 @echo ' RESTART - Restart the build just before this step'
43 @echo 'Execute "make" or "make all" to build all targets marked with [*]'
45 .config: $(CONFIG_FILES) $(CT_TOP_DIR)/config/debug.in
50 @$(CT_TOP_DIR)/scripts/crosstool.sh
54 @$(CT_TOP_DIR)/scripts/tarball.sh
58 @rm -f .config* ..config.tmp
59 @rm -rf "$(CT_TOP_DIR)/targets"