crosstool-ng/samples/Makefile
Yann E. MORIN" 58b4c6d0a4 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.
2007-05-07 09:04:02 +00:00

18 lines
439 B
Makefile

# 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