summaryrefslogtreecommitdiff
blob: 5ce95aa3b91b47fdb3b3a045bcce837fba500fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,8 +43,8 @@
 # Release
 
 install-exec-hook:
-	rm -f $(PAMDIR)/pam_u2f.la
-	chmod -f 644 $(PAMDIR)/pam_u2f.so || true
+	rm -f $(DESTDIR)/$(PAMDIR)/pam_u2f.la
+	chmod -f 644 $(DESTDIR)/$(PAMDIR)/pam_u2f.so || true
 
 indent:
 	clang-format -i *.c *.h pamu2fcfg/*.c pamu2fcfg/*.h