Makefile.steps
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 02 19:40:54 2007 +0000 (2007-07-02)
changeset 197 9383bf4a2e2e
parent 181 ff64ca4ebe48
child 205 119e62ecee74
permissions -rw-r--r--
Get rid of eclipse fiels once and for all.
Homogenise the references to crosstool-NG:
- the project is named "crosstool-NG"
- the front-end is named "ct-ng"
- don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG")
Default action is to print help.
Don't speak of make rules when dumping help, just speak of actions.
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@181
     4
CT_STEPS := libc_check_config       \
yann@181
     5
            kernel_check_config     \
yann@181
     6
            kernel_headers          \
yann@181
     7
            binutils                \
yann@181
     8
            cc_core_pass_1          \
yann@181
     9
            libc_headers            \
yann@181
    10
            libc_start_files        \
yann@181
    11
            cc_core_pass_2          \
yann@181
    12
            libfloat                \
yann@181
    13
            libc                    \
yann@181
    14
            cc                      \
yann@181
    15
            libc_finish             \
yann@181
    16
            tools                   \
yann@181
    17
            debug                   \
yann@181
    18
yann@181
    19
$(CT_STEPS):
yann@182
    20
	@make -C "$(CT_TOP_DIR)" -f $(CT_MAKEFILE) RESTART=$@ STOP=$@
yann@136
    21
yann@181
    22
$(patsubst %,-%,$(CT_STEPS)):
yann@182
    23
	@make -C "$(CT_TOP_DIR)" -f $(CT_MAKEFILE) STOP=$(patsubst -%,%,$@)
yann@136
    24
yann@181
    25
$(patsubst %,%-,$(CT_STEPS)):
yann@182
    26
	@make -C "$(CT_TOP_DIR)" -f $(CT_MAKEFILE) RESTART=$(patsubst %-,%,$@)
yann@181
    27
yann@181
    28
help-build::
yann@181
    29
	@echo  '  liststeps      - Lists all build steps'
yann@181
    30
yann@181
    31
liststeps:
yann@181
    32
	@echo  'Available build steps, in order:'
yann@181
    33
	@for step in $(CT_STEPS); do    \
yann@181
    34
	     echo "  - $${step}";       \
yann@181
    35
	 done