]> git.lizzy.rs Git - rust.git/commitdiff
helpful targets
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 6 Dec 2011 22:02:03 +0000 (14:02 -0800)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 7 Dec 2011 03:55:45 +0000 (19:55 -0800)
Makefile.in

index ec08f124b7285a0cc5541ccbceb7bea25833e88c..aab593f3046a451d92831153da3efb7d847e953d 100644 (file)
@@ -353,12 +353,24 @@ $(foreach build,$(CFG_TARGET_TRIPLES), \
 # Builds a functional Rustc for the given host.
 ######################################################################
 
-define DEF_RUSTC_TARGET
+define DEF_RUSTC_STAGE_TARGET
 # $(1) == architecture
+# $(2) == stage
 
-rustc-H-$(1):                                                                  \
+rustc-stage$(2)-H-$(1):                                                        \
        $$(foreach target,$$(CFG_TARGET_TRIPLES),       \
-               $$(SREQ3_T_$$(target)_H_$(1)))
+               $$(SREQ$(2)_T_$$(target)_H_$(1)))
+
+endef
+
+$(foreach host,$(CFG_TARGET_TRIPLES),                                                  \
+ $(eval $(foreach stage,1 2 3,                                                                 \
+  $(eval $(call DEF_RUSTC_STAGE_TARGET,$(host),$(stage))))))
+
+define DEF_RUSTC_TARGET
+# $(1) == architecture
+
+rustc-H-$(1): rustc-stage3-H-$(1)
 endef
 
 $(foreach host,$(CFG_TARGET_TRIPLES),                  \