Makefile.steps
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 26 21:23:05 2007 +0000 (2007-06-26)
changeset 181 ff64ca4ebe48
parent 152 7f74f42ef2cc
child 182 223c84ec2d90
permissions -rw-r--r--
Better handling of the steps lists:
- new make rulle: liststeps,
- new help entry telling about liststeps,
- update documentation accordingly.
     1 # Makefile for each steps
     2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     3 
     4 CT_STEPS := libc_check_config       \
     5             kernel_check_config     \
     6             kernel_headers          \
     7             binutils                \
     8             cc_core_pass_1          \
     9             libc_headers            \
    10             libc_start_files        \
    11             cc_core_pass_2          \
    12             libfloat                \
    13             libc                    \
    14             cc                      \
    15             libc_finish             \
    16             tools                   \
    17             debug                   \
    18 
    19 $(CT_STEPS):
    20 	@make -C "$(CT_TOP_DIR)" RESTART=$@ STOP=$@
    21 
    22 $(patsubst %,-%,$(CT_STEPS)):
    23 	@make -C "$(CT_TOP_DIR)" STOP=$(patsubst -%,%,$@)
    24 
    25 $(patsubst %,%-,$(CT_STEPS)):
    26 	@make -C "$(CT_TOP_DIR)" RESTART=$(patsubst %-,%,$@)
    27 
    28 help-build::
    29 	@echo  '  liststeps      - Lists all build steps'
    30 
    31 liststeps:
    32 	@echo  'Available build steps, in order:'
    33 	@for step in $(CT_STEPS); do    \
    34 	     echo "  - $${step}";       \
    35 	 done