diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-08 00:53:40 -0700 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-08 00:53:40 -0700 |
commit | ab89f73656d92ccf8fd8119318b50eca0529c207 (patch) | |
tree | f7e563174b698eaeb4809fd7b7b31e5aca652f0c | |
parent | 3545e0330171bfdaced25a3fd2e62a98d0d4b1d7 (diff) | |
parent | 12709cc751121d8c8c3ead02d9f1056c37e5ed89 (diff) |
Merge pull request #24 from tanderson92/master
Add support for differing PREFIX and MANPREFIX.
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,9 @@ ifndef PREFIX PREFIX=/usr endif +ifndef MANPREFIX + MANPREFIX=$(PREFIX) +endif ifndef SYSCONFDIR ifeq ($(PREFIX),/usr) SYSCONFDIR=/etc @@ -95,12 +98,12 @@ manpage: install: install -m 755 -d $(DESTDIR)$(PREFIX)/bin install -m 755 -d $(DESTDIR)$(SYSCONFDIR) - install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1 + install -m 755 -d $(DESTDIR)$(MANPREFIX)/share/man/man1 install -m 755 i3status $(DESTDIR)$(PREFIX)/bin/i3status # Allow network configuration for getting the link speed (which setcap && setcap cap_net_admin=ep $(DESTDIR)$(PREFIX)/bin/i3status) || true install -m 644 i3status.conf $(DESTDIR)$(SYSCONFDIR)/i3status.conf - install -m 644 man/i3status.1 $(DESTDIR)$(PREFIX)/share/man/man1 + install -m 644 man/i3status.1 $(DESTDIR)$(MANPREFIX)/share/man/man1 release: [ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION} |