37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
$NetBSD: patch-Makefile,v 1.1 2016/06/14 06:39:37 kamil Exp $
|
|
|
|
Adjust paths and install LICENSE.
|
|
|
|
--- Makefile.orig 2016-01-01 18:51:19.000000000 +0000
|
|
+++ Makefile
|
|
@@ -11,6 +11,9 @@ ifndef SYSCONFDIR
|
|
SYSCONFDIR=$(PREFIX)/etc
|
|
endif
|
|
endif
|
|
+ifndef MANDIR
|
|
+ MANDIR=$(MANDIR)
|
|
+endif
|
|
|
|
CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
|
|
CFLAGS+=-g
|
|
@@ -100,13 +103,15 @@ manpage:
|
|
|
|
install:
|
|
install -m 755 -d $(DESTDIR)$(PREFIX)/bin
|
|
- install -m 755 -d $(DESTDIR)$(SYSCONFDIR)
|
|
- install -m 755 -d $(DESTDIR)$(MANPREFIX)/share/man/man1
|
|
+ install -m 755 -d $(DESTDIR)$(PREFIX)/share/examples/i3status
|
|
+ install -m 755 -d $(DESTDIR)$(PREFIX)/share/doc/i3status
|
|
+ install -m 755 -d $(DESTDIR)$(MANPREFIX)/$(MANDIR)/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)$(MANPREFIX)/share/man/man1
|
|
+ install -m 644 i3status.conf $(DESTDIR)$(PREFIX)/share/examples/i3status/i3status.conf
|
|
+ install -m 644 LICENSE $(DESTDIR)$(PREFIX)/share/doc/i3status
|
|
+ install -m 644 man/i3status.1 $(DESTDIR)$(MANPREFIX)/$(MANDIR)/man1
|
|
|
|
release:
|
|
[ -f i3status-${VERSION} ] || rm -rf i3status-${VERSION}
|