diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-25 21:13:21 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-25 21:57:22 +0200 |
| commit | 3e004fa6a1686dd11a036fd202cd253fc8471b5b (patch) | |
| tree | 30a425d3833cb641c30d692db3a1837b3d213666 /doc/Makefile | |
| parent | aaa0ba27550e261de18b4ce6cae3743e89232279 (diff) | |
| download | libweb-3e004fa6a1686dd11a036fd202cd253fc8471b5b.tar.gz | |
Adhere to GNU Make directory variables
Diffstat (limited to 'doc/Makefile')
| -rw-r--r-- | doc/Makefile | 16 |
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) |
