steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 15 09:09:04 2007 +0000 (2007-07-15)
changeset 261 4b8cba298bf3
parent 229 Makefile.steps@9c5809b7fd23
child 304 56b97558f14a
permissions -rw-r--r--
Rename all Makefiles used by ct-ng into (something).mk, to avoid confusion.
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@205
    20
	@$(CT_NG) RESTART=$@ STOP=$@ build
yann@136
    21
yann@181
    22
$(patsubst %,-%,$(CT_STEPS)):
yann@205
    23
	@$(CT_NG) STOP=$(patsubst -%,%,$@) build
yann@136
    24
yann@181
    25
$(patsubst %,%-,$(CT_STEPS)):
yann@205
    26
	@$(CT_NG) RESTART=$(patsubst %-,%,$@) build
yann@181
    27
yann@181
    28
help-build::
yann@229
    29
	@echo  '  liststeps      - List 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