blob: 16aa010039cb644c35ba2ec2cd6eadb545b6b460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
diff --git a/Makefile b/Makefile
index 9c3901f..fb48d9e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CFLAGS:=-Wall -fPIC
CACHE_DIR:=/var/cache/pam_cookies
+DESTDIR:=/
all: pam_cookie.so
@@ -7,8 +8,8 @@ pam_cookie.so: pam_cookie.o
ld -x --shared -o $@ $^ -lpam -lssl
install: pam_cookie.so
- install --mode 644 --owner root --group root -D $< /lib/security/$<
- install --mode 2770 --owner root --group root -d $(CACHE_DIR)
+ install --mode 644 --owner root --group root -D $< $(DESTDIR)/usr/lib/security/$<
+ install --mode 2770 --owner root --group root -d $(DESTDIR)$(CACHE_DIR)
clean:
- rm *.o *.so
\ No newline at end of file
+ rm *.o *.so
|