X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Frunghc%2FMakefile;h=0b606de6384049fd4680d3e5a1bd21f4cb4482dd;hb=37b4749847aa928188f61f6d5c180d7b2e07d424;hp=654ffad6dccb8abeb39b9cf707e9a0d445a6197b;hpb=3e2748164e3e2e2dc21ca511959671f0f5f2e37f;p=ghc-hetmet.git diff --git a/utils/runghc/Makefile b/utils/runghc/Makefile index 654ffad..0b606de 100644 --- a/utils/runghc/Makefile +++ b/utils/runghc/Makefile @@ -1,36 +1,9 @@ -TOP=../.. -include $(TOP)/mk/boilerplate.mk - -# 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" -HS_PROG = runghc$(exeext) -else -HS_PROG = runghc-inplace$(exeext) -endif -INSTALL_PROGS += $(HS_PROG) - -UseGhcForCc = YES -SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) - -SRC_HC_OPTS += -Wall -RUNHASKELL_PROG = runhaskell$(exeext) -all :: $(RUNHASKELL_PROG) - -$(RUNHASKELL_PROG) : $(HS_PROG) - $(CP) $< $(RUNHASKELL_PROG) - -CLEAN_FILES += $(RUNHASKELL_PROG) +TOP=../.. +ENABLE_SHELL_WRAPPERS = YES -ifneq "$(NO_INSTALL_RUNHASKELL)" "YES" -INSTALL_PROGS += $(RUNHASKELL_PROG) -endif +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/cabal.mk -binary-dist:: - $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/runghc - $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/runghc/ - $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/runghc/ - $(INSTALL_PROGRAM) $(RUNHASKELL_PROG) $(BIN_DIST_DIR)/utils/runghc/ +# XXX Need to make runhaskell somehow -include $(TOP)/mk/target.mk