From 58b4c6d0a44d57b15d7857ecb27711a2224949e9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 7 May 2007 09:04:02 +0000 Subject: Merge the save-sample branch to trunk: - reorder most of the environment setup, - geting, extracting and patching are now components' sub-actions, - save the current config as a sample to be used as a pre-configured target. --- kconfig/Makefile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'kconfig/Makefile') diff --git a/kconfig/Makefile b/kconfig/Makefile index 7167c6f0..ca97748e 100644 --- a/kconfig/Makefile +++ b/kconfig/Makefile @@ -25,24 +25,14 @@ config: $(obj)/conf oldconfig: $(obj)/conf @$< -s $(KCONFIG_TOP) -# Build a list of all available samples -SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*))) -.PHONY: $(SAMPLES) -$(SAMPLES): - @cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config" - @$(MAKE) oldconfig - # Help text used by make help help:: @echo 'General purpose configuration targets:' @echo ' config - Update current config using a line-oriented program' @echo ' menuconfig - Update current config using a menu based program' @echo ' oldconfig - Update current config using a provided .config as base' - @echo - @echo 'Preconfigured targets:' - @for s in $(SAMPLES); do \ - echo " $${s}"; \ - done + @# saveconfig is listed here for homogeneity, but implemented in samples/Makefile + @echo ' saveconfig - Save current config as a preconfigured target' @echo '' # Cheesy build -- cgit v1.2.3