PageRenderTime 53ms CodeModel.GetById 48ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/mk/snap.mk

http://github.com/jruderman/rust
Makefile | 23 lines | 15 code | 6 blank | 2 comment | 0 complexity | 6ffb6d095adae41b0982fc17e5b29fc2 MD5 | raw file
 1define DEF_SNAP_FOR_STAGE_H
 2# $(1) stage
 3# $(2) triple
 4
 5ifdef CFG_INSTALL_SNAP
 6snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
 7	$(S)src/etc/make-snapshot.py stage$(1) $(2) install
 8else
 9snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
10	$(S)src/etc/make-snapshot.py stage$(1) $(2)
11endif
12
13endef
14
15$(foreach host,$(CFG_TARGET_TRIPLES),						\
16 $(eval $(foreach stage,1 2 3,								\
17  $(eval $(call DEF_SNAP_FOR_STAGE_H,$(stage),$(host))))))
18
19snap-stage1: snap-stage1-H-$(CFG_HOST_TRIPLE)
20
21snap-stage2: snap-stage2-H-$(CFG_HOST_TRIPLE)
22
23snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)