aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-25 21:13:21 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-25 21:57:22 +0200
commit3e004fa6a1686dd11a036fd202cd253fc8471b5b (patch)
tree30a425d3833cb641c30d692db3a1837b3d213666 /doc/Makefile
parentaaa0ba27550e261de18b4ce6cae3743e89232279 (diff)
downloadlibweb-3e004fa6a1686dd11a036fd202cd253fc8471b5b.tar.gz
Adhere to GNU Make directory variables
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 6ce9d42..d976d8d 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,9 +1,19 @@
.POSIX:
-PREFIX = /usr/local
+prefix = /usr/local
+datarootdir = $(prefix)/share
+mandir = $(datarootdir)/man
all:
install: all
- +cd man3 && $(MAKE) PREFIX=$(PREFIX) install
- +cd man7 && $(MAKE) PREFIX=$(PREFIX) install
+ +cd man3 && $(MAKE) install \
+ DESTDIR=$(DESTDIR) \
+ prefix=$(prefix) \
+ datarootdir=$(datarootdir) \
+ mandir=$(mandir)
+ +cd man7 && $(MAKE) install \
+ DESTDIR=$(DESTDIR) \
+ prefix=$(prefix) \
+ datarootdir=$(datarootdir) \
+ mandir=$(mandir)