X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghc.mk;h=3b12f7c019f761a8660fa6f024b579aa6671af54;hb=661c97c65e5fa47177502e592bb763f752b487ac;hp=ef662f6864d9dc1b4da8ff75f00e6f338d1f53ef;hpb=e93b244967871dde378b9488c9abe2db3b8d667c;p=ghc-hetmet.git diff --git a/compiler/ghc.mk b/compiler/ghc.mk index ef662f6..3b12f7c 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -439,13 +439,19 @@ compiler_stage1_SplitObjs = NO compiler_stage2_SplitObjs = NO compiler_stage3_SplitObjs = NO +# If we "make 1" or "make 2" then we don't want the rules for the stage +# that we haven't been asked to build ifeq "$(stage)" "1" compiler_stage2_NOT_NEEDED = YES endif +ifeq "$(stage)" "2" +compiler_stage1_NOT_NEEDED = YES +endif +# We don't want the rules for stage3 unless we have been explicitly +# asked to build it ifneq "$(stage)" "3" compiler_stage3_NOT_NEEDED = YES endif - $(eval $(call build-package,compiler,stage1,0)) $(eval $(call build-package,compiler,stage2,1)) $(eval $(call build-package,compiler,stage3,2))