53c4163606c3d52531cf36a5f4b194cc8f788f21
[ghc-hetmet.git] / distrib / Makefile-bin-vars.in
1
2 # Where the different pieces of the bundle should go:
3 bindir      = @bindir@
4 libdir      = @libdir@/$(package)-$(version)
5 datadir     = @datadir@/$(package)-$(version)
6
7 platform    = @TargetPlatform@
8 prefix      = @prefix@
9 exec_prefix = @exec_prefix@
10
11 # default
12 htmldir     = $(datadir)/html
13 psdir       = $(datadir)
14 pdfdir      = $(datadir)
15
16
17 PERL        = @PerlCmd@
18 SH          = /bin/sh
19 RM          = rm -f
20 MV          = mv
21 CP          = cp
22 LN_S        = @LN_S@
23 CHMOD       = chmod
24 INSTALL     = @INSTALL@
25 exeext      = @exeext@
26 SED         = @SedCmd@
27 DEFAULT_TMPDIR = /tmp
28
29 # sigh
30 INSTALL_DIR  = ./mkdirhier
31
32 #
33 # Set of package scripts for which you'd like a name-<version> symlink
34 # to be created, i.e., create a symlink, ghc-$(version), pointing to ghc to
35 # avoid version vertigo.
36 #
37 VERSION_SYMLINKS_FOR=$(PACKAGE_LINKS)
38
39 # Binaries to install
40 PACKAGE_BIN_INSTALL=$(PACKAGE_PRL_SCRIPTS) $(PACKAGE_SH_SCRIPTS)
41
42 #----------end of user-serviceable parts------------
43 #
44 #
45 # How to install the different pieces
46
47 INSTALL_BIN    = $(INSTALL) $(INSTALL_BIN_OPTS)
48 INSTALL_LIB    = $(INSTALL) $(INSTALL_LIB_OPTS)
49 INSTALL_DATA   = $(INSTALL) $(INSTALL_DATA_OPTS)
50 INSTALL_SCRIPT = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
51
52 # What's common to all installs
53 INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)
54
55 BIN_PERMS = 755
56 LIB_PERMS = 644
57
58 INSTALL_BIN_OPTS    = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
59 INSTALL_LIB_OPTS    = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
60 INSTALL_DATA_OPTS   = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
61 INSTALL_SCRIPT_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
62