aboutsummaryrefslogtreecommitdiffstats
path: root/polkit/policy/Makefile
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-10-01 21:58:32 +0100
committerColin Guthrie <colin@mageia.org>2013-10-01 21:59:49 +0100
commitb0c11102c1ab0f6297b27738fb1988815340dda6 (patch)
treef52e20bb28afa02eb6a500108841ddeea0200c13 /polkit/policy/Makefile
parent8e29638bda1956d81baba16370c43822764a011a (diff)
downloadrpmdrake-b0c11102c1ab0f6297b27738fb1988815340dda6.tar
rpmdrake-b0c11102c1ab0f6297b27738fb1988815340dda6.tar.gz
rpmdrake-b0c11102c1ab0f6297b27738fb1988815340dda6.tar.bz2
rpmdrake-b0c11102c1ab0f6297b27738fb1988815340dda6.tar.xz
rpmdrake-b0c11102c1ab0f6297b27738fb1988815340dda6.zip
polkit: Make the polkit policy files translatable.
Diffstat (limited to 'polkit/policy/Makefile')
-rw-r--r--polkit/policy/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/polkit/policy/Makefile b/polkit/policy/Makefile
new file mode 100644
index 00000000..1de72221
--- /dev/null
+++ b/polkit/policy/Makefile
@@ -0,0 +1,16 @@
+POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions
+
+POLICY_IN := $(wildcard *.policy.in)
+POLICY = $(POLICY_IN:.policy.in=.policy)
+
+all: $(POLICY)
+
+clean:
+ rm -f $(POLICY)
+
+install: all
+ install -d $(POLKITPOLICYDEST)
+ install -m644 $(POLICY) $(POLKITPOLICYDEST)
+
+%.policy: %.policy.in
+ intltool-merge --utf8 ../../po $< $@ -x -u -c ../../po/.intltool-merge-cache