steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 28 21:35:44 2008 +0000 (2008-09-28)
changeset 885 4653d6002d37
parent 602 1968d150a34f
child 932 264d38e5b5ba
permissions -rw-r--r--
Had a new known issue: ccache will break the build because we're sym-linking to have our own compiler for host and build systems, but that screws up ccache finding the real compiler.
There is no fix, so the only way to inform the users is to document it: remove ccache.

/trunk/docs/known-issues.txt | 25 21 4 0 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
yann@136
     1
# Makefile for each steps
yann@136
     2
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
yann@136
     3
yann@461
     4
CT_STEPS := libc_check_config   \
yann@461
     5
            kernel_headers      \
yann@466
     6
            gmp                 \
yann@466
     7
            mpfr                \
yann@461
     8
            binutils            \
yann@461
     9
            cc_core_pass_1      \
yann@461
    10
            libc_headers        \
yann@461
    11
            libc_start_files    \
yann@461
    12
            cc_core_pass_2      \
yann@461
    13
            libc                \
yann@461
    14
            cc                  \
yann@461
    15
            libc_finish         \
yann@461
    16
            binutils_target     \
yann@602
    17
            gmp_target          \
yann@602
    18
            mpfr_target         \
yann@461
    19
            tools               \
yann@461
    20
            debug               \
yann@461
    21
yann@461
    22
export CT_STEPS
yann@181
    23
yann@181
    24
$(CT_STEPS):
yann@205
    25
	@$(CT_NG) RESTART=$@ STOP=$@ build
yann@136
    26
yann@304
    27
$(patsubst %,+%,$(CT_STEPS)):
yann@304
    28
	@$(CT_NG) STOP=$(patsubst +%,%,$@) build
yann@136
    29
yann@304
    30
$(patsubst %,%+,$(CT_STEPS)):
yann@304
    31
	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
yann@181
    32
yann@181
    33
help-build::
yann@544
    34
	@echo  '  list-steps         - List all build steps'
yann@181
    35
yann@544
    36
list-steps:
yann@181
    37
	@echo  'Available build steps, in order:'
yann@181
    38
	@for step in $(CT_STEPS); do    \
yann@181
    39
	     echo "  - $${step}";       \
yann@181
    40
	 done
yann@544
    41
	@echo  'Use "$(CT_NG) <step>" to execute only that step.'
yann@544
    42
	@echo  'Use "$(CT_NG) +<step>" to execute up to that step.'
yann@544
    43
	@echo  'Use "$(CT_NG) <step>+" to execute from that step onward.'