summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2011-01-20 10:36:03 +0100
committerMichael Stapelberg <michael@stapelberg.de>2011-01-20 10:36:03 +0100
commitfc6b72eaece88b0cd3d4e1e35392843911d00748 (patch)
tree566ddc63896230c40543fb9e7a1aa5c7a2897f65 /Makefile
parent53987df490e720af98c1d079e583da5e8228d9c3 (diff)
add i3lock.pam (installed as /etc/pam.d/i3lock) which includes 'login' (Thanks Семён)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fc855e3..ab25d4e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
INSTALL=install
PREFIX=/usr
+SYSCONFDIR=/etc
# Check if pkg-config is installed, we need it for building CFLAGS/LDFLAGS
ifeq ($(shell which pkg-config 2>/dev/null 1>/dev/null || echo 1),1)
@@ -39,7 +40,9 @@ clean:
install: all
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/pam.d
$(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
+ $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(SYSCONFDIR)/pam.d/i3lock
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/i3lock