summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-05-15 19:04:00 +0800
committerraveit65 <[email protected]>2019-07-01 12:53:07 +0200
commit21770a3057ad62d692787d19e9e23d4350076d4d (patch)
tree900d4e7f88b0a23e7cb24210aa14485374586940 /data/Makefile.am
parent412abbbe7bacf7dfc11633a9680d268c06e56e30 (diff)
downloadcaja-21770a3057ad62d692787d19e9e23d4350076d4d.tar.bz2
caja-21770a3057ad62d692787d19e9e23d4350076d4d.tar.xz
migrate intltool to gettext
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 42a9dea2..92d6e824 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,7 +2,8 @@ NULL =
xml_in_files = caja.xml.in
xml_files = $(xml_in_files:.xml.in=.xml)
-@INTLTOOL_XML_RULE@
+$(xml_files): $(xml_in_files)
+ $(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
desktopdir = $(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@@ -14,7 +15,8 @@ desktop_in_files = \
caja-file-management-properties.desktop.in \
caja-browser.desktop.in \
caja-autorun-software.desktop.in
-@INTLTOOL_DESKTOP_RULE@
+%.desktop: %.desktop.in
+ $(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
mimedir = $(datadir)/mime/packages
mime_DATA = $(xml_files)
@@ -41,6 +43,8 @@ cajadata_DATA = \
appdatadir = $(datadir)/metainfo
appdata_in_files = caja.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 $@
EXTRA_DIST = $(cajadata_DATA) \
caja.desktop \