diff options
author | Grégoire Jadi <gjadi@omecha.info> | 2018-02-25 16:56:03 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-30 13:30:32 -0300 |
commit | 1a370266242fe28865335f326e2368d038f4095d (patch) | |
tree | 9f53ecca4263ee9cc15eea58d08f74ee818f45a2 | |
parent | 09f204b5634ed8db914acf4f5634d41754b01c34 (diff) | |
download | keyringer-1a370266242fe28865335f326e2368d038f4095d.tar.gz keyringer-1a370266242fe28865335f326e2368d038f4095d.tar.bz2 |
Add MANDIR variable and use it
Follow GNU Coding Standards and increase interoperability with package
managers.
No semantic change.
Signed-off-by: Silvio Rhatto <rhatto@riseup.net>
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ PACKAGE = keyringer VERSION = $(shell ./keyringer | head -n 1 | cut -d ' ' -f 2) PREFIX ?= /usr/local +MANDIR ?=$(PREFIX)/share/man ARCHIVE ?= tarballs INSTALL = /usr/bin/install @@ -38,7 +39,7 @@ install_doc: $(INSTALL) -D -m 0644 LICENSE $(DESTDIR)/$(PREFIX)/share/doc/$(PACKAGE)/LICENSE install_man: - $(INSTALL) -D -m 0644 share/man/keyringer.1 $(DESTDIR)/$(PREFIX)/share/man/man1/keyringer.1 + $(INSTALL) -D -m 0644 share/man/keyringer.1 $(DESTDIR)/$(MANDIR)/man1/keyringer.1 install_completion: $(INSTALL) -D -m 0644 lib/keyringer/completions/bash/keyringer $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/keyringer |