Don't try to rebuild compiler/primop-*.hs-incl when BootingFromHc
authorSimon Marlow <marlowsd@gmail.com>
Mon, 9 Nov 2009 13:51:59 +0000 (13:51 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 9 Nov 2009 13:51:59 +0000 (13:51 +0000)
Patch submitted by Matthias Kilian <kili@outback.escape.de>

compiler/ghc.mk

index 86f91a9..f2a4fc5 100644 (file)
@@ -257,6 +257,7 @@ $(PRIMOPS_TXT) compiler/parser/Parser.y: %: %.pp compiler/stage1/$(PLATFORM_H)
 
 $(eval $(call clean-target,compiler,primop, $(PRIMOPS_TXT) compiler/parser/Parser.y $(PRIMOP_BITS)))
 
+ifneq "$(BootingFromHc)" "YES"
 compiler/primop-data-decl.hs-incl: $(PRIMOPS_TXT) $(GENPRIMOP_INPLACE)
        "$(GENPRIMOP_INPLACE)" --data-decl          < $< > $@
 compiler/primop-tag.hs-incl: $(PRIMOPS_TXT) $(GENPRIMOP_INPLACE)
@@ -282,6 +283,7 @@ compiler/primop-primop-info.hs-incl: $(PRIMOPS_TXT) $(GENPRIMOP_INPLACE)
 # can still generate them if we want them back
 compiler/primop-usage.hs-incl: $(PRIMOPS_TXT)
        "$(GENPRIMOP_INPLACE)" --usage              < $< > $@
+endif
 
 # -----------------------------------------------------------------------------
 # Configuration