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(-)
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@461
     4
CT_STEPS := libc_check_config   \
yann@461
     5
            kernel_headers      \
yann@466
     6
            gmp                 \
yann@466
     7
            mpfr                \
yann@461
     8
            binutils            \
yann@461
     9
            cc_core_pass_1      \
yann@461
    10
            libc_headers        \
yann@461
    11
            libc_start_files    \
yann@461
    12
            cc_core_pass_2      \
yann@461
    13
            libc                \
yann@461
    14
            cc                  \
yann@461
    15
            libc_finish         \
yann@461
    16
            binutils_target     \
yann@602
    17
            gmp_target          \
yann@602
    18
            mpfr_target         \
yann@461
    19
            tools               \
yann@461
    20
            debug               \
yann@461
    21
yann@461
    22
export CT_STEPS
yann@181
    23
yann@181
    24
$(CT_STEPS):
yann@205
    25
	@$(CT_NG) RESTART=$@ STOP=$@ build
yann@136
    26
yann@304
    27
$(patsubst %,+%,$(CT_STEPS)):
yann@304
    28
	@$(CT_NG) STOP=$(patsubst +%,%,$@) build
yann@136
    29
yann@304
    30
$(patsubst %,%+,$(CT_STEPS)):
yann@304
    31
	@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
yann@181
    32
yann@181
    33
help-build::
yann@544
    34
	@echo  '  list-steps         - List all build steps'
yann@181
    35
yann@544
    36
list-steps:
yann@181
    37
	@echo  'Available build steps, in order:'
yann@181
    38
	@for step in $(CT_STEPS); do    \
yann@181
    39
	     echo "  - $${step}";       \
yann@181
    40
	 done
yann@932
    41
	@echo  'Use "<step>" as action to execute only that step.'
yann@932
    42
	@echo  'Use "+<step>" as action to execute up to that step.'
yann@932
    43
	@echo  'Use "<step>+" as action to execute from that step onward.'