summaryrefslogtreecommitdiff
path: root/policy/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'policy/Makefile.am')
-rw-r--r--policy/Makefile.am11
1 files changed, 5 insertions, 6 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am
index 4bab7f4..1f3343f 100644
--- a/policy/Makefile.am
+++ b/policy/Makefile.am
@@ -1,16 +1,15 @@
polkit_policydir = $(datadir)/polkit-1/actions
-polkit_policy_DATA = \
- org.mate.power.policy
+polkit_policy_in_files = org.mate.power.policy.in
+polkit_policy_DATA = $(polkit_policy_in_files:.policy.in=.policy)
-# You will need a recent intltool or the patch from this bug
-# http://bugzilla.gnome.org/show_bug.cgi?id=462312
-@INTLTOOL_POLICY_RULE@
+$(polkit_policy_DATA): $(polkit_policy_in_files)
+ $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
.in2.in:
sed "s|[@]sbindir@|${sbindir}|" $< > $@
EXTRA_DIST = org.mate.power.policy.in2
-DISTCLEANFILES = org.mate.power.policy org.mate.power.policy.in
+DISTCLEANFILES = $(polkit_policy_DATA) $(polkit_policy_in_files)
clean-local :
rm -f *~