summaryrefslogtreecommitdiff
path: root/steps.mk
blob: e5ddd7976ab5bf5e03e878090ab356d915bef02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Makefile for each steps
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>

CT_STEPS := libc_check_config   \
            kernel_check_config \
            kernel_headers      \
            gmp                 \
            mpfr                \
            binutils            \
            cc_core_pass_1      \
            libc_headers        \
            libc_start_files    \
            cc_core_pass_2      \
            libc                \
            cc                  \
            libc_finish         \
            binutils_target     \
            gmp_target          \
            mpfr_target         \
            tools               \
            debug               \

export CT_STEPS

$(CT_STEPS):
	@$(CT_NG) RESTART=$@ STOP=$@ build

$(patsubst %,+%,$(CT_STEPS)):
	@$(CT_NG) STOP=$(patsubst +%,%,$@) build

$(patsubst %,%+,$(CT_STEPS)):
	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build

help-build::
	@echo  '  list-steps         - List all build steps'

list-steps:
	@echo  'Available build steps, in order:'
	@for step in $(CT_STEPS); do    \
	     echo "  - $${step}";       \
	 done
	@echo  'Use "$(CT_NG) <step>" to execute only that step.'
	@echo  'Use "$(CT_NG) +<step>" to execute up to that step.'
	@echo  'Use "$(CT_NG) <step>+" to execute from that step onward.'