]> git.sur5r.net Git - i3/i3status/blobdiff - Makefile
Merge pull request #30 from Deiz/update-notices
[i3/i3status] / Makefile
index 625b5220cf678e7014b250f1c5584728f4535076..cf52d9067a59a46baec9a0c4f209f86fe45295ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 ifndef PREFIX
   PREFIX=/usr
 endif
+ifndef MANPREFIX
+  MANPREFIX=$(PREFIX)
+endif
 ifndef SYSCONFDIR
   ifeq ($(PREFIX),/usr)
     SYSCONFDIR=/etc
@@ -18,6 +21,7 @@ CPPFLAGS+=-DVERSION=\"${GIT_VERSION}\"
 CFLAGS+=-Iinclude
 LIBS+=-lconfuse
 LIBS+=-lyajl
+LIBS+=-lpulse
 
 VERSION:=$(shell git describe --tags --abbrev=0)
 GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1))"
@@ -94,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}