30 lines
977 B
Text
30 lines
977 B
Text
|
$NetBSD: patch-Makefile,v 1.1 2016/06/11 23:00:14 kamil Exp $
|
||
|
|
||
|
Install example configuration into EGDIR.
|
||
|
Install man-page.
|
||
|
|
||
|
--- Makefile.orig 2015-05-20 07:17:06.000000000 +0000
|
||
|
+++ Makefile
|
||
|
@@ -2,6 +2,7 @@ INSTALL=install
|
||
|
PREFIX=/usr
|
||
|
SYSCONFDIR=/etc
|
||
|
PKG_CONFIG=pkg-config
|
||
|
+MANDIR=share/man
|
||
|
|
||
|
# Check if pkg-config is installed, we need it for building CFLAGS/LIBS
|
||
|
ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null 1>/dev/null || echo 1),1)
|
||
|
@@ -37,9 +38,11 @@ clean:
|
||
|
|
||
|
install: all
|
||
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||
|
- $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/pam.d
|
||
|
+ $(INSTALL) -d $(DESTDIR)$(EGDIR)/pam.d
|
||
|
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||
|
$(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
|
||
|
- $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(SYSCONFDIR)/pam.d/i3lock
|
||
|
+ $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(EGDIR)/pam.d/i3lock
|
||
|
+ $(INSTALL) -m 644 i3lock.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1/i3lock.1
|
||
|
|
||
|
uninstall:
|
||
|
rm -f $(DESTDIR)$(PREFIX)/bin/i3lock
|