Fix man page installation to use mandir (Issue #55)

This commit is contained in:
Michael R Sweet 2023-12-04 08:50:28 -05:00
parent d92b72ed02
commit 86281750e5
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244

View File

@ -155,9 +155,9 @@ install: $(TARGETS)
for file in doc/pdfio.html doc/pdfio-512.png LICENSE NOTICE; do \
$(INSTALL) -c -m 644 $$file $(BUILDROOT)$(datadir)/doc/pdfio; \
done
echo Installing man page to $(BUILDROOT)$(datadir)/man/man3...
$(INSTALL) -d -m 755 $(BUILDROOT)$(datadir)/man/man3
$(INSTALL) -c -m 644 doc/pdfio.3 $(BUILDROOT)$(datadir)/man/man3
echo Installing man page to $(BUILDROOT)$(mandir)/man3...
$(INSTALL) -d -m 755 $(BUILDROOT)$(mandir)/man3
$(INSTALL) -c -m 644 doc/pdfio.3 $(BUILDROOT)$(mandir)/man3
# Test everything