From e5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 2 Apr 2010 00:18:26 +0200 Subject: 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 --- samples/samples.mk | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'samples') 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- - show a brief overview of (list below)' - @echo ' - preconfigure crosstool-NG with (list below)' - @echo ' build-all[.#] - Build *all* samples (list below) and install in' + @echo ' show- - show a brief overview of (list with list-samples)' + @echo ' - preconfigure crosstool-NG with (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) -- cgit v1.2.3