summaryrefslogtreecommitdiffstats
path: root/polkit/Makefile
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-05 12:37:29 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-05 12:49:20 +0100
commitfb5af2c54f2a27c1154d64fe4d111003ce5fcb03 (patch)
tree049d6f7c7a3006390b6a8afbc6926948d85b467c /polkit/Makefile
parent19aa428a6c72a8cc525898f5b855d5389da03870 (diff)
downloadmgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar.gz
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar.bz2
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar.xz
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.zip
Enhancement Makefile and add support for DESTDIR
Diffstat (limited to 'polkit/Makefile')
-rw-r--r--polkit/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/polkit/Makefile b/polkit/Makefile
index 11591ddc..3ea36b94 100644
--- a/polkit/Makefile
+++ b/polkit/Makefile
@@ -1,7 +1,9 @@
-BINDIR = /usr/bin
-LIBEXECDIR = /usr/libexec
-BINDEST = $(PREFIX)$(BINDIR)
-POLKITPOLICYDEST = $(PREFIX)/usr/share/polkit-1/actions
+DESTDIR =
+PREFIX = /usr
+BINDIR = $(PREFIX)/bin
+BINDEST = $(DESTDIR)$(BINDIR)
+LIBEXECDIR = $(PREFIX)/libexec
+POLKITPOLICYDEST = $(DESTDIR)$(PREFIX)/share/polkit-1/actions
POLICY_IN := $(wildcard *.policy.in)
POLICY = $(POLICY_IN:.policy.in=.policy)