From 8bf0fa7ea32a607a499d516aeb9658534fe3ac63 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 15 Nov 2018 16:12:58 +0100 Subject: [PATCH] Use make functions for HELP_LINGUAS --- help/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/help/Makefile.am b/help/Makefile.am index d847b21d6..a711b85e3 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -6,6 +6,10 @@ HELP_ID = atril HELP_FILES = index.docbook legal.xml HELP_MEDIA = figures/atril_start_window.png -HELP_LINGUAS = bg ca cs de el en_GB es eu fi fr it ja nl oc pt_BR ru sl sr sv uk vi zh_CN +# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr +IGNORE_HELP_LINGUAS = +HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \ + $(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \ + $(subst /,,$(dir $(wildcard */*.po))) ) -include $(top_srcdir)/git.mk