Use a program similar to cabal-install to build the libraries
[ghc-hetmet.git] / utils / runghc / Makefile
index ef55c32..54245a3 100644 (file)
@@ -10,6 +10,10 @@ SRC_HC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS))
 SRC_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS))
 endif
 
+ifeq "$(ghc_ge_605)" "NO"
+SRC_HC_OPTS += -cpp
+endif
+
 # We have two version: the inplace version compiled by the bootstrap compiler
 #   and the install version compiled by the stage 1 compiler
 ifeq "$(stage)" "2"
@@ -30,7 +34,7 @@ all :: $(RUNHASKELL_PROG)
 $(RUNHASKELL_PROG) : $(HS_PROG)
        $(CP) $< $(RUNHASKELL_PROG)
 
-CLEAN_FILES += $(RUNHASKELL_PROG)
+MOSTLY_CLEAN_FILES += $(RUNHASKELL_PROG)
 
 ifneq "$(NO_INSTALL_RUNHASKELL)" "YES"
 INSTALL_PROGS += $(RUNHASKELL_PROG)