[project @ 1996-11-21 16:45:53 by simonm]
[ghc.git] / mk / install.mk.in
1 #-----------------------------------------------------------------------------
2 # $Id: install.mk.in,v 1.2 1996/11/21 16:50:34 simonm Exp $
3
4 AT_GLASGOW = @AT_GLASGOW@
5 prefix = @prefix@
6 exec_prefix = @exec_prefix@
7
8 ifeq ($(AT_GLASGOW), 1)
9 INSTBINDIR = $(exec_prefix)/bin/`/usr/local/gnu/bin/hw_os`
10 else
11 INSTBINDIR = $(exec_prefix)/bin
12 endif
13
14 INSTSCRIPTDIR = $(exec_prefix)/bin
15 INSTLIBDIR = $(prefix)/lib/$(HOSTPLATFORM)
16 INSTDATADIR = $(prefix)/lib
17
18 #-----------------------------------------------------------------------------
19 # Man pages & Documentation
20
21 # top of manual page tree to install in
22 # NB: not necessarily the same place as to look for man pages (?)
23 INSTMANROOT = $(prefix)
24
25 # prefix for man page _sources_ (vs .../cat)
26 INSTMANSRCROOT = $(INSTMANROOT)/man
27
28 # man pages for commands
29 INSTCOMMANDIR = $(INSTMANSRCROOT)$(COMMANSUFFIX)
30
31 # man pages for library routines
32 INSTLIBMANDIR = $(INSTMANSRCROOT)$(LIBMANSUFFIX)
33
34 # man pages for system commands
35 INSTSYSMANDIR = $(INSTMANSRCROOT)$(SYSMANSUFFIX)
36
37 # suffix for installing commands'/etcs' man pages
38 COMMANSUFFIX = 1
39 LIBMANSUFFIX = 3
40 SYSMANSUFFIX = 8
41
42 ifeq ($(AT_GLASGOW), 1)
43 INSTINFODIR = /local/doc/info
44 else
45 INSTINFODIR = $(prefix)/info
46 endif
47
48 #-----------------------------------------------------------------------------
49 # How to install things
50
51 # this stuff about "who" does the installing doesn't have make vars
52 # as it is not intended to be runtime-changeable.
53 #
54 ifdef OWNER
55 INSTOWNER = -o $(OWNER)
56 else
57 INSTOWNER =
58 endif
59
60 ifdef GROUP
61 INSTGROUP = -g $(GROUP)
62 else
63 INSTGROUP =
64 endif
65
66 INSTFILEFLAGS =
67 INSTSTRIP =
68 INSTBINFLAGS = \
69 -m 0755 $(INSTOWNER) $(INSTGROUP) $(INSTFILEFLAGS) $(INSTSTRIP)
70
71
72 # No strip flags on rest of these -- avoids message from install
73 # about stripping non-binaries.
74
75 GENINSTALLFLAGS = $(INSTOWNER) $(INSTGROUP) $(INSTFILEFLAGS)
76
77 INSTSCRIPTFLAGS = -m 0755 $(GENINSTALLFLAGS)
78 INSTLIBFLAGS = -m 0644 $(GENINSTALLFLAGS)
79 INSTDATALIBFLAGS = -m 0644 $(GENINSTALLFLAGS)
80 INSTINCFLAGS = -m 0644 $(GENINSTALLFLAGS)
81 INSTDATAFLAGS = -m 0644 $(GENINSTALLFLAGS)
82 INSTMANFLAGS = -m 0644 $(GENINSTALLFLAGS)
83 INSTRANLIBFLAGS =