-TOP=../..
-include $(TOP)/mk/boilerplate.mk
-
-HS_PROG = runghc$(exeext)
-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)
+TOP=../..
+ENABLE_SHELL_WRAPPERS = YES
-CLEAN_FILES += $(RUNHASKELL_PROG)
+include $(TOP)/mk/boilerplate.mk
+include $(TOP)/mk/cabal.mk
-ifneq "$(NO_INSTALL_RUNHASKELL)" "YES"
-INSTALL_PROGS += $(RUNHASKELL_PROG)
-endif
+distclean maintainer-clean:
+ $(RM) -f runghc.cabal
-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