diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-10-25 08:42:22 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-10-25 08:42:22 +0000 |
commit | f6e429f8f5a533d699a69ffc733a56be5ddff5a9 (patch) | |
tree | b945307c5ceb491d298ada5b5807f2d298aa97ad /utils/runghc | |
parent | 7895455f8dc327c6b447f9287d6e76ddcd253183 (diff) | |
download | haskell-f6e429f8f5a533d699a69ffc733a56be5ddff5a9.tar.gz |
default to installing runhaskell and hsc2hs again, but provide knobs to turn them off
Diffstat (limited to 'utils/runghc')
-rw-r--r-- | utils/runghc/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
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 |