summaryrefslogtreecommitdiff
path: root/policy/Makefile.am
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-10-30 11:50:07 +0800
committerraveit65 <[email protected]>2019-11-12 11:18:15 +0100
commit4b6d373147649c13d6ea625c31f15a34ced324e3 (patch)
tree0215b3594255d27ee81f1fd996ab22564b95b935 /policy/Makefile.am
parenta9ff56c6de34f8d3db48f3405c5ee671dc281194 (diff)
downloadmate-power-manager-4b6d373147649c13d6ea625c31f15a34ced324e3.tar.bz2
mate-power-manager-4b6d373147649c13d6ea625c31f15a34ced324e3.tar.xz
migrate from intltool to gettext
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 *~