This commit is contained in:
Niko Matsakis 2011-11-29 11:53:43 -08:00
parent 52993f7c32
commit 865a796081

View File

@ -1,9 +1,18 @@
define DEF_SNAP_FOR_STAGE_H
# $(1) stage
# $(2) triple
snap-stage1: $(HSREQ1_H_$(CFG_HOST_TRIPLE))
$(S)src/etc/make-snapshot.py stage1 $(CFG_HOST_TRIPLE)
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
$(S)src/etc/make-snapshot.py stage$(1) $(2)
snap-stage2: $(HSREQ2_H_$(CFG_HOST_TRIPLE))
$(S)src/etc/make-snapshot.py stage2 $(CFG_HOST_TRIPLE)
endef
snap-stage3: $(HSREQ3_H_$(CFG_HOST_TRIPLE))
$(S)src/etc/make-snapshot.py stage3 $(CFG_HOST_TRIPLE)
$(foreach host,$(CFG_TARGET_TRIPLES), \
$(eval $(foreach stage,1 2 3, \
$(eval $(call DEF_SNAP_FOR_STAGE_H,$(stage),$(host))))))
snap-stage1: snap-stage1-H-$(CFG_HOST_TRIPLE)
snap-stage2: snap-stage2-H-$(CFG_HOST_TRIPLE)
snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)