summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-27 09:45:44 +0100
committerraveit65 <[email protected]>2021-02-07 18:24:04 +0100
commitd496d55ebb3a1e40932c628550efce64846f0840 (patch)
tree0c9e6aae56687132c0a795eb56b08967853b5e55 /Makefile.am
parent03a8ca5781668b60accf906e46864e111749b0f3 (diff)
downloadmate-user-guide-d496d55ebb3a1e40932c628550efce64846f0840.tar.bz2
mate-user-guide-d496d55ebb3a1e40932c628550efce64846f0840.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 94e6e59..63fdff6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,11 +1,19 @@
-SUBDIRS = po mate-user-guide
+if USE_NLS
+PO_SUBDIR = po
+endif
+
+SUBDIRS = $(PO_SUBDIR) mate-user-guide
desktopdir = $(datadir)/applications
desktop_in_files = mate-user-guide.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 $< $@
+endif
CLEANFILES = $(desktop_DATA)