1 # -----------------------------------------------------------------------------
3 # (c) 2009 The University of Glasgow
5 # This file is part of the GHC build system.
7 # To understand how the build system works and how to modify it, see
8 # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
11 # -----------------------------------------------------------------------------
13 utils/runghc_dist_MODULES = Main
14 utils/runghc_dist_HC_OPTS = -cpp -DVERSION="\"$(ProjectVersion)\""
15 utils/runghc_dist_PROG = runghc$(exeext)
16 utils/runghc_dist_SHELL_WRAPPER = YES
17 utils/runghc_dist_INSTALL_SHELL_WRAPPER = YES
19 ifneq "$(BINDIST)" "YES"
21 # hack: the build system has trouble with Main modules not called Main.hs
22 utils/runghc/dist/build/Main.hs : utils/runghc/runghc.hs $(MKDIRHIER)
23 $(MKDIRHIER) $(dir $@)
26 $(eval $(call build-prog,utils/runghc,dist,1))
30 install: install_runhaskell
32 .PHONY: install_runhaskell
33 ifeq "$(Windows)" "YES"
34 install_runhaskell: install_bins
35 $(CP) $(DESTDIR)$(bindir)/runghc$(exeext) $(DESTDIR)$(bindir)/runhaskell$(exeext)
38 $(RM) $(DESTDIR)$(bindir)/runhaskell
39 $(LN_S) runghc $(DESTDIR)$(bindir)/runhaskell