diff options
author | Ian Lynagh <igloo@earth.li> | 2008-09-19 11:58:31 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-09-19 11:58:31 +0000 |
commit | e0f3f5f3d0f70a5c128343ac16b815e73f1c1827 (patch) | |
tree | f0dd9d0bb317ede1c5ae5d9fa92f219fb04899c5 /compiler/Makefile | |
parent | 027caa7f6b842751f12c1d08e90bde91a0e38a5a (diff) | |
download | haskell-e0f3f5f3d0f70a5c128343ac16b815e73f1c1827.tar.gz |
Don't require Parser.y in a source dist6_10_branch_has_been_forked
Diffstat (limited to 'compiler/Makefile')
-rw-r--r-- | compiler/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/Makefile b/compiler/Makefile index 69b290340c..d64732aeb0 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -189,7 +189,13 @@ CONFIGURE_FLAGS_STAGE1 += $(USE_BOOT_CONFIGURE_FLAGS) CONFIGURE_FLAGS_STAGE2 += $(USE_STAGE1_CONFIGURE_FLAGS) CONFIGURE_FLAGS_STAGE3 += $(USE_STAGE2_CONFIGURE_FLAGS) -boot.stage.%: $(PRIMOP_BITS) $(CONFIG_HS) parser/Parser.y +# In a source dist we don't need to worry about Parser.y(.pp) as we have +# the .hs file pre-generated +ifneq "$(wildcard parser/Parser.y.pp)" "" +PARSER_Y = parser/Parser.y +endif + +boot.stage.%: $(PRIMOP_BITS) $(CONFIG_HS) $(PARSER_Y) test -f $(STAGE3_PACKAGE_CONF) || echo "[]" > $(STAGE3_PACKAGE_CONF) $(CABAL) configure --distpref dist-stage$* \ $(CONFIGURE_FLAGS_STAGE$*) \ |