Export `Monoid(..)`/`Foldable(..)`/`Traversable(..)` from Prelude
[ghc.git] / utils / runghc / ghc.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 # http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 utils/runghc_PACKAGE = runghc
14 utils/runghc_dist-install_USES_CABAL = YES
15 utils/runghc_dist-install_PROGNAME = runghc
16 utils/runghc_dist-install_SHELL_WRAPPER = YES
17 utils/runghc_dist-install_INSTALL = YES
18 utils/runghc_dist-install_INSTALL_INPLACE = YES
19 utils/runghc_dist-install_INSTALL_SHELL_WRAPPER_NAME = runghc-$(ProjectVersion)
20 utils/runghc_dist-install_EXTRA_HC_OPTS = -cpp -DVERSION="\"$(ProjectVersion)\""
21
22 ifneq "$(BINDIST)" "YES"
23 # hack: the build system has trouble with Main modules not called Main.hs
24 utils/runghc/dist-install/build/Main.hs : utils/runghc/runghc.hs | $$(dir $$@)/.
25 "$(CP)" $< $@
26 endif
27
28 $(eval $(call build-prog,utils/runghc,dist-install,1))
29
30 install: install_runhaskell
31
32 .PHONY: install_runhaskell
33 ifeq "$(Windows_Host)" "YES"
34 install_runhaskell: install_bins
35 "$(CP)" $(DESTDIR)$(bindir)/runghc$(exeext1) $(DESTDIR)$(bindir)/runhaskell$(exeext1)
36 else
37 install_runhaskell:
38 $(call removeFiles,"$(DESTDIR)$(bindir)/runhaskell")
39 $(LN_S) runghc "$(DESTDIR)$(bindir)/runhaskell"
40 $(call removeFiles,"$(DESTDIR)$(bindir)/runghc")
41 $(LN_S) runghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/runghc"
42 endif
43