2012-12-11 09:32:48 +08:00
|
|
|
# Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
# file at the top-level directory of this distribution and at
|
|
|
|
# http://rust-lang.org/COPYRIGHT.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
# option. This file may not be copied, modified, or distributed
|
|
|
|
# except according to those terms.
|
|
|
|
|
2011-11-30 03:53:43 +08:00
|
|
|
define DEF_SNAP_FOR_STAGE_H
|
|
|
|
# $(1) stage
|
|
|
|
# $(2) triple
|
2011-05-03 14:43:13 +08:00
|
|
|
|
2011-11-30 03:53:43 +08:00
|
|
|
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
|
2013-01-03 15:53:05 +08:00
|
|
|
$(CFG_PYTHON) $(S)src/etc/make-snapshot.py stage$(1) $(2)
|
2011-05-13 03:56:15 +08:00
|
|
|
|
2011-11-30 03:53:43 +08:00
|
|
|
endef
|
2011-05-13 03:56:15 +08:00
|
|
|
|
2014-07-23 12:37:05 +08:00
|
|
|
$(foreach host,$(CFG_HOST), \
|
|
|
|
$(eval $(foreach stage,1 2 3, \
|
2011-11-30 03:53:43 +08:00
|
|
|
$(eval $(call DEF_SNAP_FOR_STAGE_H,$(stage),$(host))))))
|
|
|
|
|
2013-10-21 17:18:21 +08:00
|
|
|
snap-stage1: snap-stage1-H-$(CFG_BUILD)
|
2011-11-30 03:53:43 +08:00
|
|
|
|
2013-10-21 17:18:21 +08:00
|
|
|
snap-stage2: snap-stage2-H-$(CFG_BUILD)
|
2011-11-30 03:53:43 +08:00
|
|
|
|
2013-10-21 17:18:21 +08:00
|
|
|
snap-stage3: snap-stage3-H-$(CFG_BUILD)
|