summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-08 11:13:05 +0100
committerraveit65 <[email protected]>2021-02-09 10:27:40 +0100
commit0ff5527f5b057d26e75ea7c44ec4ea809c140cdc (patch)
tree6771dc459f2c954cd82b5dbe8114a6603f742338 /data/Makefile.am
parent7839311c2c203323609b89f589294778bb4e980f (diff)
downloadengrampa-0ff5527f5b057d26e75ea7c44ec4ea809c140cdc.tar.bz2
engrampa-0ff5527f5b057d26e75ea7c44ec4ea809c140cdc.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index fdc4dde..8ed7529 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,7 +5,11 @@ desktop_in_in_files = engrampa.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.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) sed '/^# Translators/d' < $< > $@
+endif
matchdir = $(datadir)/engrampa
match_DATA = packages.match
@@ -21,7 +25,11 @@ appdata_in_in_files = engrampa.appdata.xml.in.in
appdata_in_files = $(appdata_in_in_files:.xml.in.in=.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
gsettingsschema_in_files = org.mate.engrampa.gschema.xml.in
gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)