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) --- desktop-themes/HighContrastInverse/Makefile.am | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'desktop-themes/HighContrastInverse') diff --git a/desktop-themes/HighContrastInverse/Makefile.am b/desktop-themes/HighContrastInverse/Makefile.am index 5fcd8883..c51d60cb 100644 --- a/desktop-themes/HighContrastInverse/Makefile.am +++ b/desktop-themes/HighContrastInverse/Makefile.am @@ -1,17 +1,20 @@ -THEME_NAME=HighContrastInverse -THEME_IN_FILES=index.theme.in +THEME_NAME = HighContrastInverse themedir = $(datadir)/themes/$(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 = \ gtk-2.0 \ metacity-1 \ pixmaps -DISTCLEANFILES=index.theme -EXTRA_DIST=index.theme.in +CLEANFILES = index.theme +EXTRA_DIST = $(theme_in_files) -- cgit v1.2.1