Major patch to fix reporting of unused imports
[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 is set to libdir here as GHC needs package.conf and unlit
16 # to be in the same place (and things like ghc-pkg need to agree on
17 # where package.conf is, so we just set it globally).
18 datadir     = $(libdir)
19
20 platform    = @TargetPlatform@
21 prefix      = @prefix@
22 exec_prefix = @exec_prefix@
23
24 mandir      = $(datarootdir)/man
25
26 headerdir   = $(libdir)/include
27
28 # default
29 docdir      = @datadir@/doc/ghc
30 htmldir     = $(docdir)
31 psdir       = $(docdir)
32 pdfdir      = $(docdir)
33
34
35 PERL        = @PerlCmd@
36 SH          = /bin/sh
37 RM          = rm
38 RM_OPTS     = -f
39 MV          = mv
40 CP          = cp
41 LN_S        = @LN_S@
42 CHMOD       = chmod
43 INSTALL     = @INSTALL@
44 #
45 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
46 # install-sh script (if chosen). This not terribly useful to us, so we convert
47 # it into an abs. path.
48
49 INSTALL                 := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
50
51 exeext      = @exeext@
52 SED             = @SedCmd@
53 DEFAULT_TMPDIR = /tmp
54 RANLIB      = @RANLIB@
55 CPP         = @CPP@
56
57 RAWCPP_FLAGS            = -undef -traditional
58
59 #----------end of user-serviceable parts------------
60 #
61 #
62 # How to install the different pieces
63
64 INSTALL_DIR     = $(bindist_abs_root)/utils/mkdirhier/mkdirhier
65 INSTALL_BIN     = $(INSTALL) $(INSTALL_BIN_OPTS)
66 INSTALL_LIB     = $(INSTALL) $(INSTALL_LIB_OPTS)
67 INSTALL_DATA    = $(INSTALL) $(INSTALL_DATA_OPTS)
68 INSTALL_SCRIPT  = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
69 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_OPTS)
70 INSTALL_HEADER  = $(INSTALL) $(INSTALL_HEADER_OPTS)
71 INSTALL_SHLIB   = $(INSTALL) $(INSTALL_SHLIB_OPTS)
72 INSTALL_MAN     = $(INSTALL) $(INSTALL_MAN_OPTS)
73
74 # What's common to all installs
75 INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)
76
77 BIN_PERMS = 755
78 LIB_PERMS = 644
79
80 INSTALL_BIN_OPTS     = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
81 INSTALL_LIB_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
82 INSTALL_DATA_OPTS    = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
83 INSTALL_SCRIPT_OPTS  = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
84 INSTALL_PROGRAM_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_PROGRAM_OPTS)
85 INSTALL_HEADER_OPTS  = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_HEADER_OPTS)
86 INSTALL_SHLIB_OPTS   = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SHLIB_OPTS)
87 INSTALL_MAN_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_MAN_OPTS)
88
89 EXECUTABLE_FILE = chmod $(BIN_PERMS)
90
91 GHC_COMPAT_DIR=$(TOP)/mk
92