summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-08 13:36:28 +0100
committerraveit65 <[email protected]>2021-02-10 23:58:25 +0100
commit66de6ed56647df275f2844eb6106349932991579 (patch)
tree56b68e1244af645727ece13032f2ba89fe6cb68f /data
parent6b159d0665c67c3c78c2968673e24bf45c2430d2 (diff)
downloadatril-66de6ed56647df275f2844eb6106349932991579.tar.bz2
atril-66de6ed56647df275f2844eb6106349932991579.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index f6a99571..f924481b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -25,7 +25,11 @@ desktopdir = $(datadir)/applications
desktop_in_files = atril.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
$(desktop_DATA): $(desktop_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp -f $< $@
+endif
#
# DBus servide file
@@ -49,7 +53,11 @@ appdata_in_in_files = atril.appdata.xml.in.in
appdata_in_files = $(appdata_in_in_files:.appdata.xml.in.in=.appdata.xml.in)
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
$(appdata_DATA): $(appdata_in_files)
+if USE_NLS
$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+else
+ $(AM_V_GEN) cp -f $< $@
+endif
#
# GSettings schema