yann@63: # Build a list of all available samples yann@63: yann@63: SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*))) yann@63: .PHONY: $(SAMPLES) yann@63: $(SAMPLES): yann@63: @cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config" yann@63: @$(MAKE) oldconfig yann@63: yann@63: help:: yann@63: @echo 'Preconfigured targets:' yann@63: @for s in $(SAMPLES); do \ yann@63: echo " $${s}"; \ yann@63: done yann@63: @echo '' yann@63: yann@63: saveconfig: yann@63: @$(CT_TOP_DIR)/scripts/saveSample.sh