steps.mk
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 21:30:27 2008 +0000 (2008-10-14)
changeset 935 e175e3538310
parent 847 af75fc1fe0fc
child 940 f0f9ba3f98f2
permissions -rw-r--r--
Introduce the notion of a 'sample comment'.

- presence of the sample's reported.by file is now mandatory.
- when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file.
- when saving a sample, one can store a few-liner comment.
- when recalling a sample, the reporter name, URL and comment (if present) are printed.
- update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail).
- update all samples that were missing the reported.by file.

/trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------
/trunk/scripts/showSamples.sh | 12 6 6 0 +++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++
/trunk/samples/samples.mk | 22 17 5 0 +++++++++--
4 files changed, 73 insertions(+), 22 deletions(-)
     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_headers      \
     6             gmp                 \
     7             mpfr                \
     8             binutils            \
     9             cc_core_pass_1      \
    10             libc_headers        \
    11             libc_start_files    \
    12             cc_core_pass_2      \
    13             libc                \
    14             cc                  \
    15             libc_finish         \
    16             binutils_target     \
    17             gmp_target          \
    18             mpfr_target         \
    19             tools               \
    20             debug               \
    21 
    22 export CT_STEPS
    23 
    24 $(CT_STEPS):
    25 	@$(CT_NG) RESTART=$@ STOP=$@ build
    26 
    27 $(patsubst %,+%,$(CT_STEPS)):
    28 	@$(CT_NG) STOP=$(patsubst +%,%,$@) build
    29 
    30 $(patsubst %,%+,$(CT_STEPS)):
    31 	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
    32 
    33 help-build::
    34 	@echo  '  list-steps         - List all build steps'
    35 
    36 list-steps:
    37 	@echo  'Available build steps, in order:'
    38 	@for step in $(CT_STEPS); do    \
    39 	     echo "  - $${step}";       \
    40 	 done
    41 	@echo  'Use "<step>" as action to execute only that step.'
    42 	@echo  'Use "+<step>" as action to execute up to that step.'
    43 	@echo  'Use "<step>+" as action to execute from that step onward.'