summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-10-11 13:44:15 +0800
committerRobert Antoni Buj Gelonch <[email protected]>2019-10-11 19:18:55 +0200
commit73493f622ad0bc259f404f6e5aef8f3181f81104 (patch)
tree47cf2923420fafd9f3d3fda559308add1b4e7e97 /Makefile.am
parent2ea0e31b009b2a504733b1709ca035110472cd55 (diff)
downloadmate-system-monitor-73493f622ad0bc259f404f6e5aef8f3181f81104.tar.bz2
mate-system-monitor-73493f622ad0bc259f404f6e5aef8f3181f81104.tar.xz
migrate from intltool to gettext
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am
index b6ca2f6..07154d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,15 +2,17 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
-SUBDIRS = pixmaps po src tools help
+SUBDIRS = po pixmaps src tools help
man_MANS = mate-system-monitor.1
-@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/metainfo
appdata_in_files = mate-system-monitor.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+$(appdata_DATA): $(appdata_in_files)
+ $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+
org.mate.mate-system-monitor.policy.in: org.mate.mate-system-monitor.policy.in.in Makefile
$(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
@@ -23,30 +25,28 @@ EXTRA_DIST = \
$(appdata_in_files) \
org.mate.mate-system-monitor.policy.in.in \
mate-system-monitor.desktop.in \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in \
omf.make \
xmldocs.make
-@INTLTOOL_POLICY_RULE@
polkit_policydir = $(datadir)/polkit-1/actions
polkit_policy_in_files = org.mate.mate-system-monitor.policy.in
polkit_policy_DATA = $(polkit_policy_in_files:.policy.in=.policy)
+$(polkit_policy_DATA): $(polkit_policy_in_files)
+ $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+
Applicationsdir = $(datadir)/applications
Applications_in_files = mate-system-monitor.desktop.in
Applications_DATA = $(Applications_in_files:.desktop.in=.desktop)
-@INTLTOOL_DESKTOP_RULE@
+
+$(Applications_DATA): $(Applications_in_files)
+ $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
distuninstallcheck_listfiles = find . -type f -print
CLEANFILES = mate-system-monitor.appdata.xml
DISTCLEANFILES = \
- intltool-extract \
- intltool-merge \
- intltool-update \
mate-system-monitor.desktop \
org.mate.mate-system-monitor.policy \
org.mate.mate-system-monitor.policy.in