diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-02 00:18:26 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-02 00:18:26 +0200 |
commit | e5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74 (patch) | |
tree | 49927e3c122645a97ea83e63af381aea7d54098c /samples/samples.mk | |
parent | 5807b7dfb7a0234b5157e761b195d478f9803067 (diff) | |
download | crosstool-ng-e5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74.tar.gz crosstool-ng-e5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74.tar.bz2 crosstool-ng-e5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74.zip |
scripts: misc help and auto-complete fixes
- don't list samples in the main help screen
- improve the samples listing in list-samples
- don't document the 'config' action, it's long dead
- document the 'V' environment variable
- improve on START, STOP and PREFIX environment variables
- add PREFIX and V to autocomplete
- advertise auto-complete at install time
Diffstat (limited to 'samples/samples.mk')
-rw-r--r-- | samples/samples.mk | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/samples/samples.mk b/samples/samples.mk index 6d30d5f1..3c67dbb8 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -19,19 +19,16 @@ help-config:: help-samples:: @echo ' list-samples - prints the list of all samples (for scripting)' - @echo ' show-<sample> - show a brief overview of <sample> (list below)' - @echo ' <sample> - preconfigure crosstool-NG with <sample> (list below)' - @echo ' build-all[.#] - Build *all* samples (list below) and install in' + @echo ' show-<sample> - show a brief overview of <sample> (list with list-samples)' + @echo ' <sample> - preconfigure crosstool-NG with <sample> (list with list-samples)' + @echo ' build-all[.#] - Build *all* samples (list with list-samples) and install in' @echo ' $${CT_PREFIX} (which you must set)' - @echo ' Available samples:' - @$(CT_LIB_DIR)/scripts/showSamples.sh $(CT_SAMPLES) help-distrib:: @echo ' wiki-samples - Print a DokuWiki table of samples' help-env:: - @echo ' CT_PREFIX - directory in which to auto-install samples' - @echo ' (see action "build-all", above).' + @echo ' CT_PREFIX=dir - install samples in dir (see action "build-all", above).' # ---------------------------------------------------------- # This part deals with printing samples information @@ -54,7 +51,7 @@ show-all: $(patsubst %,show-%,$(CT_SAMPLES)) # print the list of all available samples PHONY += list-samples list-samples: FORCE - @echo $(CT_SAMPLES) |$(sed) -r -e 's/ /\n/g;' |sed -r -e 's/(.*),(.*)/\2 \(host: \1\)/;' + $(SILENT)$(CT_LIB_DIR)/scripts/showSamples.sh $(CT_SAMPLES) wiki-samples: $(SILENT)$(CT_LIB_DIR)/scripts/showSamples.sh -w $(CT_SAMPLES) |