]> git.sur5r.net Git - i3/i3status/commitdiff
Makefile: actually use PREFIX (Thanks cls)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Aug 2011 13:24:03 +0000 (15:24 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Aug 2011 13:24:03 +0000 (15:24 +0200)
Makefile

index 644edd1c2719ff3166093e2ec46098d633ec1ca5..436c204e37b575038423f85a54a259c0a2d83c69 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -61,14 +61,14 @@ manpage:
        $(MAKE) -C man
 
 install:
        $(MAKE) -C man
 
 install:
-       install -m 755 -d $(DESTDIR)/usr/bin
-       install -m 755 -d $(DESTDIR)/etc
-       install -m 755 -d $(DESTDIR)/usr/share/man/man1
-       install -m 755 i3status $(DESTDIR)/usr/bin/i3status
+       install -m 755 -d $(DESTDIR)$(PREFIX)/usr/bin
+       install -m 755 -d $(DESTDIR)$(PREFIX)/etc
+       install -m 755 -d $(DESTDIR)$(PREFIX)/usr/share/man/man1
+       install -m 755 i3status $(DESTDIR)$(PREFIX)/usr/bin/i3status
        # Allow network configuration for getting the link speed
        # Allow network configuration for getting the link speed
-       (which setcap && setcap cap_net_admin=ep $(DESTDIR)/usr/bin/i3status) || true
-       install -m 644 i3status.conf $(DESTDIR)/etc/i3status.conf
-       install -m 644 man/i3status.1 $(DESTDIR)/usr/share/man/man1
+       (which setcap && setcap cap_net_admin=ep $(DESTDIR)$(PREFIX)/usr/bin/i3status) || true
+       install -m 644 i3status.conf $(DESTDIR)$(PREFIX)/etc/i3status.conf
+       install -m 644 man/i3status.1 $(DESTDIR)$(PREFIX)/usr/share/man/man1
 
 release:
        [ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION}
 
 release:
        [ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION}