summaryrefslogtreecommitdiff
path: root/Makefile.steps
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-06-26 21:23:05 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-06-26 21:23:05 (GMT)
commitc2abd16d69e6fb9514c91d81d25aa56a0633723c (patch)
treeb5be9ecf7f024b7513f73a9fd79f2e743537a4ec /Makefile.steps
parent5e7fa0debcf8a28813907bbdd8c85894e1a9f883 (diff)
Better handling of the steps lists:
- new make rulle: liststeps, - new help entry telling about liststeps, - update documentation accordingly.
Diffstat (limited to 'Makefile.steps')
-rw-r--r--Makefile.steps72
1 files changed, 27 insertions, 45 deletions
diff --git a/Makefile.steps b/Makefile.steps
index e09c3c7..caf1566 100644
--- a/Makefile.steps
+++ b/Makefile.steps
@@ -1,53 +1,35 @@
# Makefile for each steps
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
-libc_check_config \
-kernel_check_config \
-kernel_headers \
-binutils \
-cc_core_pass_1 \
-libc_headers \
-libc_start_files \
-cc_core_pass_2 \
-libfloat \
-libc \
-cc \
-libc_finish \
-tools \
-debug \
-:
+CT_STEPS := libc_check_config \
+ kernel_check_config \
+ kernel_headers \
+ binutils \
+ cc_core_pass_1 \
+ libc_headers \
+ libc_start_files \
+ cc_core_pass_2 \
+ libfloat \
+ libc \
+ cc \
+ libc_finish \
+ tools \
+ debug \
+
+$(CT_STEPS):
@make -C "$(CT_TOP_DIR)" RESTART=$@ STOP=$@
--libc_check_config \
--kernel_check_config \
--kernel_headers \
--binutils \
--cc_core_pass_1 \
--libc_headers \
--libc_start_files \
--cc_core_pass_2 \
--libfloat \
--libc \
--cc \
--libc_finish \
--tools \
--debug \
-:
+$(patsubst %,-%,$(CT_STEPS)):
@make -C "$(CT_TOP_DIR)" STOP=$(patsubst -%,%,$@)
-libc_check_config- \
-kernel_check_config- \
-kernel_headers- \
-binutils- \
-cc_core_pass_1- \
-libc_headers- \
-libc_start_files- \
-cc_core_pass_2- \
-libfloat- \
-libc- \
-cc- \
-libc_finish- \
-tools- \
-debug- \
-:
+$(patsubst %,%-,$(CT_STEPS)):
@make -C "$(CT_TOP_DIR)" RESTART=$(patsubst %-,%,$@)
+
+help-build::
+ @echo ' liststeps - Lists all build steps'
+
+liststeps:
+ @echo 'Available build steps, in order:'
+ @for step in $(CT_STEPS); do \
+ echo " - $${step}"; \
+ done