Remove some of the old compat stuff now that we assume GHC 6.4
[ghc-hetmet.git] / utils / runghc / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 HS_PROG         = runghc$(exeext)
5 INSTALL_PROGS   += $(HS_PROG)
6
7 UseGhcForCc = YES
8 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
9
10 SRC_HC_OPTS += -Wall
11
12 RUNHASKELL_PROG = runhaskell$(exeext)
13 all :: $(RUNHASKELL_PROG)
14
15 $(RUNHASKELL_PROG) : $(HS_PROG)
16         $(CP) $< $(RUNHASKELL_PROG)
17
18 CLEAN_FILES += $(RUNHASKELL_PROG)
19
20 ifneq "$(NO_INSTALL_RUNHASKELL)" "YES"
21 INSTALL_PROGS += $(RUNHASKELL_PROG)
22 endif
23
24 binary-dist::
25         $(INSTALL_DIR)                $(BIN_DIST_DIR)/utils/runghc
26         $(INSTALL_DATA)    Makefile   $(BIN_DIST_DIR)/utils/runghc/
27         $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/runghc/
28         $(INSTALL_PROGRAM) $(RUNHASKELL_PROG) $(BIN_DIST_DIR)/utils/runghc/
29
30 include $(TOP)/mk/target.mk