From f6e429f8f5a533d699a69ffc733a56be5ddff5a9 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 25 Oct 2007 08:42:22 +0000 Subject: default to installing runhaskell and hsc2hs again, but provide knobs to turn them off --- utils/runghc/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'utils/runghc') diff --git a/utils/runghc/Makefile b/utils/runghc/Makefile index 7ea6c09ee3..16e9724f60 100644 --- a/utils/runghc/Makefile +++ b/utils/runghc/Makefile @@ -16,9 +16,22 @@ include $(GHC_COMPAT_DIR)/compat.mk SRC_HC_OPTS += $(GhcHcOpts) $(GhcStage1HcOpts) SRC_HC_OPTS += -Wall -binary-dist: +RUNHASKELL_PROG = runhaskell$(exeext) +all :: $(RUNHASKELL_PROG) + +$(RUNHASKELL_PROG) : $(HS_PROG) + $(CP) $< $(RUNHASKELL_PROG) + +CLEAN_FILES += $(RUNHASKELL_PROG) + +ifneq "$(NO_INSTALL_RUNHASKELL)" "YES" +INSTALL_PROGS += $(RUNHASKELL_PROG) +endif + +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/ include $(TOP)/mk/target.mk -- cgit v1.2.1