From e50a1907e04a320bf9e054182b8dbeb4c52eb076 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 13 Feb 2021 12:32:06 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- capplets/time-admin/data/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'capplets/time-admin/data') diff --git a/capplets/time-admin/data/Makefile.am b/capplets/time-admin/data/Makefile.am index f8d5c524..dbe2572e 100644 --- a/capplets/time-admin/data/Makefile.am +++ b/capplets/time-admin/data/Makefile.am @@ -28,10 +28,13 @@ desktop_in_files = mate-time-admin.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) $(desktop_DATA): $(desktop_in_files) +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --keyword= --keyword=Name --keyword=Comment --keyword=Keywords --template $< -d $(top_srcdir)/po -o $@ +else + $(AM_V_GEN) sed '/^# Translators/d' < $< > $@ +endif CLEANFILES = $(desktop_DATA) -EXTRA_DIST = \ - $(desktop_in_files) +EXTRA_DIST = $(desktop_in_files) -include $(top_srcdir)/git.mk -- cgit v1.2.1