2007-05-07 09:04:02 +00:00
|
|
|
# Build a list of all available samples
|
|
|
|
|
2007-05-08 10:57:34 +00:00
|
|
|
CT_SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%/crosstool.config,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*/crosstool.config)))
|
2007-05-07 09:04:02 +00:00
|
|
|
.PHONY: $(SAMPLES)
|
2007-05-08 10:57:34 +00:00
|
|
|
$(CT_SAMPLES):
|
2007-05-07 09:04:02 +00:00
|
|
|
@cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config"
|
|
|
|
@$(MAKE) oldconfig
|
|
|
|
|
|
|
|
help::
|
|
|
|
@echo 'Preconfigured targets:'
|
2007-05-08 10:57:34 +00:00
|
|
|
@$(CT_TOP_DIR)/scripts/showSamples.sh $(CT_SAMPLES)
|
2007-05-07 09:04:02 +00:00
|
|
|
@echo ''
|
|
|
|
|
|
|
|
saveconfig:
|
|
|
|
@$(CT_TOP_DIR)/scripts/saveSample.sh
|