diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/samples/Makefile b/samples/Makefile new file mode 100644 index 0000000..7c15b6e --- /dev/null +++ b/samples/Makefile @@ -0,0 +1,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 |