Makefile-bin-vars.in 2.82 KB
Newer Older
1

Ian Lynagh's avatar
Ian Lynagh committed
2
3
# Where we are
bindist_abs_root = @hardtop@
4
5
FPTOOLS_TOP_ABS  = @hardtop@

Ian Lynagh's avatar
Typo    
Ian Lynagh committed
6
# This Makefile isn't used on Windows, so we always have ghc-pkg.bin
7
8
# rather than ghc-pkg.exe.
GHC_PKG_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/ghc-pkg.bin
Ian Lynagh's avatar
Ian Lynagh committed
9

10
11
12
# Where the different pieces of the bundle should go:
bindir      = @bindir@
libdir      = @libdir@/$(package)-$(version)
Ian Lynagh's avatar
Ian Lynagh committed
13
libexecdir  = $(libdir)
14
datarootdir = @datarootdir@
15
16
17
18
# datadir is set to libdir here as GHC needs package.conf and unlit
# to be in the same place (and things like ghc-pkg need to agree on
# where package.conf is, so we just set it globally).
datadir     = $(libdir)
19
20
21
22
23

platform    = @TargetPlatform@
prefix      = @prefix@
exec_prefix = @exec_prefix@

24
25
mandir      = $(datarootdir)/man

26
27
headerdir   = $(libdir)/include

28
# default
29
30
31
32
docdir      = @datadir@/doc/ghc
htmldir     = $(docdir)
psdir       = $(docdir)
pdfdir      = $(docdir)
33
34
35
36


PERL        = @PerlCmd@
SH	    = /bin/sh
37
38
RM          = rm
RM_OPTS     = -f
39
40
41
42
43
MV          = mv
CP          = cp
LN_S        = @LN_S@
CHMOD       = chmod
INSTALL	    = @INSTALL@
44
45
46
47
48
49
50
#
# Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
# install-sh script (if chosen). This not terribly useful to us, so we convert
# it into an abs. path.
# 
INSTALL			:= $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))

51
exeext      = @exeext@
52
SED	        = @SedCmd@
53
DEFAULT_TMPDIR = /tmp
54
RANLIB      = @RANLIB@
55
CPP         = @CPP@
56
57

RAWCPP_FLAGS            = -undef -traditional
58
59
60
61
62
63

#----------end of user-serviceable parts------------
#
#
# How to install the different pieces
# 
Ian Lynagh's avatar
Ian Lynagh committed
64
65
66
67
68
69
INSTALL_DIR     = $(bindist_abs_root)/utils/mkdirhier/mkdirhier
INSTALL_BIN     = $(INSTALL) $(INSTALL_BIN_OPTS)
INSTALL_LIB     = $(INSTALL) $(INSTALL_LIB_OPTS)
INSTALL_DATA    = $(INSTALL) $(INSTALL_DATA_OPTS)
INSTALL_SCRIPT  = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_OPTS)
70
71
72
INSTALL_HEADER  = $(INSTALL) $(INSTALL_HEADER_OPTS)
INSTALL_SHLIB   = $(INSTALL) $(INSTALL_SHLIB_OPTS)
INSTALL_MAN     = $(INSTALL) $(INSTALL_MAN_OPTS)
73
74
75
76
77
78
79

# What's common to all installs
INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)

BIN_PERMS = 755
LIB_PERMS = 644

Ian Lynagh's avatar
Ian Lynagh committed
80
81
82
83
84
INSTALL_BIN_OPTS     = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
INSTALL_LIB_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
INSTALL_DATA_OPTS    = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
INSTALL_SCRIPT_OPTS  = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
INSTALL_PROGRAM_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_PROGRAM_OPTS)
85
86
87
INSTALL_HEADER_OPTS  = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_HEADER_OPTS)
INSTALL_SHLIB_OPTS   = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SHLIB_OPTS)
INSTALL_MAN_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_MAN_OPTS)
Ian Lynagh's avatar
Ian Lynagh committed
88
89
90
91

EXECUTABLE_FILE = chmod $(BIN_PERMS)

GHC_COMPAT_DIR=$(TOP)/mk
92