File: install.mk

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (52 lines) | stat: -rw-r--r-- 1,161 bytes parent folder | download
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
# Copyright, the authors of the Linux man-pages project
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception


ifndef MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_INSTALL_INCLUDED
MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_INSTALL_INCLUDED := 1


include $(MAKEFILEDIR)/configure/directory_variables/src.mk


ifndef DESTDIR
DESTDIR     :=
endif
ifndef prefix
prefix      := /usr
endif
ifndef exec_prefix
exec_prefix := $(prefix)
endif
ifndef datarootdir
datarootdir := $(prefix)/share
endif
ifndef mandir
mandir      := $(datarootdir)/man
endif
ifndef docdir
docdir      := $(datarootdir)/doc
endif
ifndef htmldir
htmldir     := $(docdir)/html/man
endif
ifndef pdfdir
pdfdir      := $(docdir)/pdf
endif
ifndef bindir
bindir      := $(exec_prefix)/bin
endif


$(foreach s, $(MANSECTIONS),                                                  \
	$(eval man$(s)dir ?= $(mandir)/man$(s)))
$(foreach s, $(MANSECTIONS),                                                  \
	$(eval man$(s)ext ?= .$(s)))

man2constdir := $(man2dir)
man2typedir  := $(man2dir)
man3constdir := $(man3dir)
man3headdir  := $(man3dir)
man3typedir  := $(man3dir)

endif  # include guard