summaryrefslogtreecommitdiff
path: root/samples/Makefile
blob: 7c15b6e081a4c8633e5a9296b21438e2813a829a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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::
	@echo  'Preconfigured targets:'
	@for s in $(SAMPLES); do   \
	    echo  "  $${s}"; \
	 done
	@echo  ''

saveconfig:
	@$(CT_TOP_DIR)/scripts/saveSample.sh