Move the register-inplace special-case stuff into the ghc-prim package
[ghc-hetmet.git] / distrib / Makefile-bin-vars.in
1
2 # Where we are
3 bindist_abs_root = @hardtop@
4 FPTOOLS_TOP_ABS  = @hardtop@
5
6 # This Makefile isn't used on Windows, so we always have ghc-pkg.bin
7 # rather than ghc-pkg.exe.
8 GHC_PKG_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/ghc-pkg.bin
9
10 # Where the different pieces of the bundle should go:
11 bindir      = @bindir@
12 libdir      = @libdir@/$(package)-$(version)
13 libexecdir  = $(libdir)
14 datarootdir = @datarootdir@
15 datadir     = @datadir@/$(package)-$(version)
16
17 platform    = @TargetPlatform@
18 prefix      = @prefix@
19 exec_prefix = @exec_prefix@
20
21 mandir      = $(datarootdir)/man
22
23 headerdir   = $(libdir)/include
24
25 # default
26 docdir      = @datadir@/doc/ghc
27 htmldir     = $(docdir)
28 psdir       = $(docdir)
29 pdfdir      = $(docdir)
30
31
32 PERL        = @PerlCmd@
33 SH          = /bin/sh
34 RM          = rm -f
35 MV          = mv
36 CP          = cp
37 LN_S        = @LN_S@
38 CHMOD       = chmod
39 INSTALL     = @INSTALL@
40 #
41 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
42 # install-sh script (if chosen). This not terribly useful to us, so we convert
43 # it into an abs. path.
44
45 INSTALL                 := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
46
47 exeext      = @exeext@
48 SED             = @SedCmd@
49 DEFAULT_TMPDIR = /tmp
50 RANLIB      = @RANLIB@
51 CPP         = @CPP@
52
53 RAWCPP_FLAGS            = -undef -traditional
54
55 #----------end of user-serviceable parts------------
56 #
57 #
58 # How to install the different pieces
59
60 INSTALL_DIR     = $(bindist_abs_root)/utils/mkdirhier/mkdirhier
61 INSTALL_BIN     = $(INSTALL) $(INSTALL_BIN_OPTS)
62 INSTALL_LIB     = $(INSTALL) $(INSTALL_LIB_OPTS)
63 INSTALL_DATA    = $(INSTALL) $(INSTALL_DATA_OPTS)
64 INSTALL_SCRIPT  = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
65 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_OPTS)
66 INSTALL_HEADER  = $(INSTALL) $(INSTALL_HEADER_OPTS)
67 INSTALL_SHLIB   = $(INSTALL) $(INSTALL_SHLIB_OPTS)
68 INSTALL_MAN     = $(INSTALL) $(INSTALL_MAN_OPTS)
69
70 # What's common to all installs
71 INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)
72
73 BIN_PERMS = 755
74 LIB_PERMS = 644
75
76 INSTALL_BIN_OPTS     = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
77 INSTALL_LIB_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
78 INSTALL_DATA_OPTS    = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
79 INSTALL_SCRIPT_OPTS  = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
80 INSTALL_PROGRAM_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_PROGRAM_OPTS)
81 INSTALL_HEADER_OPTS  = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_HEADER_OPTS)
82 INSTALL_SHLIB_OPTS   = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SHLIB_OPTS)
83 INSTALL_MAN_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_MAN_OPTS)
84
85 EXECUTABLE_FILE = chmod $(BIN_PERMS)
86
87 GHC_COMPAT_DIR=$(TOP)/mk
88