From 0c174e7d454120dc5b6f2ba07efe97d6cadd713c Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 4 Oct 2018 17:45:06 +0200 Subject: Use make functions for HELP_LINGUAS --- gsearchtool/help/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gsearchtool') diff --git a/gsearchtool/help/Makefile.am b/gsearchtool/help/Makefile.am index 08860198..ad59d979 100644 --- a/gsearchtool/help/Makefile.am +++ b/gsearchtool/help/Makefile.am @@ -3,6 +3,10 @@ HELP_ID = mate-search-tool HELP_FILES = index.docbook legal.xml -HELP_LINGUAS = ca cs de el en_GB es eu fi fr it ko oc ru sv uk zh_CN - HELP_MEDIA = figures/mate-search-tool_window.png + +# 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))) ) -- cgit v1.2.1