-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