summaryrefslogtreecommitdiff
path: root/mk/install.mk.in
blob: 2d4580764883f091b18aae7dad4ae4cb05ae139c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#-----------------------------------------------------------------------------
# $Id: install.mk.in,v 1.2 1996/11/21 16:50:34 simonm Exp $

AT_GLASGOW 	= @AT_GLASGOW@
prefix	 	= @prefix@
exec_prefix	= @exec_prefix@

ifeq ($(AT_GLASGOW), 1)
INSTBINDIR 	= $(exec_prefix)/bin/`/usr/local/gnu/bin/hw_os`
else
INSTBINDIR 	= $(exec_prefix)/bin
endif

INSTSCRIPTDIR 	= $(exec_prefix)/bin
INSTLIBDIR 	= $(prefix)/lib/$(HOSTPLATFORM)
INSTDATADIR 	= $(prefix)/lib

#-----------------------------------------------------------------------------
# Man pages & Documentation

# top of manual page tree to install in
# NB: not necessarily the same place as to look for man pages (?)
INSTMANROOT	= $(prefix)

# prefix for man page _sources_ (vs .../cat)
INSTMANSRCROOT 	= $(INSTMANROOT)/man

# man pages for commands
INSTCOMMANDIR 	= $(INSTMANSRCROOT)$(COMMANSUFFIX)

# man pages for library routines
INSTLIBMANDIR 	= $(INSTMANSRCROOT)$(LIBMANSUFFIX)

# man pages for system commands
INSTSYSMANDIR 	= $(INSTMANSRCROOT)$(SYSMANSUFFIX)

# suffix for installing commands'/etcs' man pages
COMMANSUFFIX 	= 1
LIBMANSUFFIX 	= 3
SYSMANSUFFIX 	= 8

ifeq ($(AT_GLASGOW), 1)
INSTINFODIR 	= /local/doc/info
else
INSTINFODIR 	= $(prefix)/info
endif

#-----------------------------------------------------------------------------
# How to install things

# this stuff about "who" does the installing doesn't have make vars
# as it is not intended to be runtime-changeable.
#
ifdef OWNER
INSTOWNER 	= -o $(OWNER)
else
INSTOWNER	=
endif

ifdef GROUP
INSTGROUP	= -g $(GROUP)
else
INSTGROUP	=
endif

INSTFILEFLAGS	=
INSTSTRIP	=
INSTBINFLAGS	= \
	-m 0755 $(INSTOWNER) $(INSTGROUP) $(INSTFILEFLAGS) $(INSTSTRIP)


#	No strip flags on rest of these -- avoids message from install
#	about stripping non-binaries.

GENINSTALLFLAGS = $(INSTOWNER) $(INSTGROUP) $(INSTFILEFLAGS)

INSTSCRIPTFLAGS 	= -m 0755 $(GENINSTALLFLAGS)
INSTLIBFLAGS 		= -m 0644 $(GENINSTALLFLAGS)
INSTDATALIBFLAGS 	= -m 0644 $(GENINSTALLFLAGS)
INSTINCFLAGS 		= -m 0644 $(GENINSTALLFLAGS)
INSTDATAFLAGS 		= -m 0644 $(GENINSTALLFLAGS)
INSTMANFLAGS 		= -m 0644 $(GENINSTALLFLAGS)
INSTRANLIBFLAGS 	=