]> git.lizzy.rs Git - rust.git/blob - mk/snap.mk
Auto merge of #28455 - nrc:span-bang, r=alexcrichton
[rust.git] / mk / snap.mk
1 # Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 # file at the top-level directory of this distribution and at
3 # http://rust-lang.org/COPYRIGHT.
4 #
5 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 # option. This file may not be copied, modified, or distributed
9 # except according to those terms.
10
11 define DEF_SNAP_FOR_STAGE_H
12 # $(1) stage
13 # $(2) triple
14
15 snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
16         $(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2)
17
18 endef
19
20 $(foreach host,$(CFG_HOST), \
21  $(eval $(foreach stage,1 2 3, \
22   $(eval $(call DEF_SNAP_FOR_STAGE_H,$(stage),$(host))))))
23
24 snap-stage1: snap-stage1-H-$(CFG_BUILD)
25
26 snap-stage2: snap-stage2-H-$(CFG_BUILD)
27
28 snap-stage3: snap-stage3-H-$(CFG_BUILD)