0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-30 02:16:45 +01:00
rust/mk/snap.mk
Stefan Plantikow 1b7f1415d6 build: added CFG_INSTALL_SNAP for automatically activating test snapshots
This is only guaranteed to work when building in the top-level dir
2011-12-02 12:23:50 -08:00

23 lines
568 B
Makefile

define DEF_SNAP_FOR_STAGE_H
# $(1) stage
# $(2) triple
ifdef CFG_INSTALL_SNAP
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
$(S)src/etc/make-snapshot.py stage$(1) $(2) install
else
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
$(S)src/etc/make-snapshot.py stage$(1) $(2)
endif
endef
$(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)