summaryrefslogtreecommitdiffstats
path: root/share/mk/configure/directory_variables.mk
blob: af2745034f89a6e6e6e5adc639771faddd557665 (plain) (blame)
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
########################################################################
# Copyright 2021-2023, Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: GPL-3.0-or-later
########################################################################


ifndef MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_INCLUDED
MAKEFILE_CONFIGURE_DIRECTORY_VARIABLES_INCLUDED := 1


include $(MAKEFILEDIR)/src.mk


builddir := .tmp


DESTDIR     :=
prefix      := /usr/local
datarootdir := $(prefix)/share
docdir      := $(datarootdir)/doc
htmldir     := $(docdir)/html/man
mandir      := $(datarootdir)/man


htmlext  := .html


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


endif  # include guard