From 6127af25367a6c423826eea09be9307fcc08d615 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 9 Feb 2021 14:46:52 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- cursor-themes/mate-black/Makefile.am | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'cursor-themes') diff --git a/cursor-themes/mate-black/Makefile.am b/cursor-themes/mate-black/Makefile.am index 3bf75550..0c379c86 100644 --- a/cursor-themes/mate-black/Makefile.am +++ b/cursor-themes/mate-black/Makefile.am @@ -1,16 +1,17 @@ -THEME_NAME=mate-black -THEME_IN_FILES=index.theme.in +THEME_NAME = mate-black themedir = $(datadir)/icons/$(THEME_NAME) +theme_in_files = index.theme.in +theme_DATA = $(theme_in_files:.theme.in=.theme) -theme_DATA = \ - index.theme - -$(theme_DATA): $(THEME_IN_FILES) +%.theme: %.theme.in +if USE_NLS $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ +else + $(AM_V_GEN) cp -f $< $@ +endif -SUBDIRS = \ - cursors +SUBDIRS = cursors -DISTCLEANFILES = index.theme -EXTRA_DIST = index.theme.in +CLEANFILES = $(theme_DATA) +EXTRA_DIST = $(theme_in_files) -- cgit v1.2.1