From 8c38ae63f31f06a3aee09cb494ffccfdedbe9549 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 --- baobab/help/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'baobab') diff --git a/baobab/help/Makefile.am b/baobab/help/Makefile.am index 8f311a7d..857d359a 100644 --- a/baobab/help/Makefile.am +++ b/baobab/help/Makefile.am @@ -3,8 +3,6 @@ HELP_ID = mate-disk-usage-analyzer HELP_FILES = index.docbook legal.xml -HELP_LINGUAS = ca cs da de el en_GB es eu fi fr it oc pl ru sv uk zh_CN zh_HK zh_TW - HELP_MEDIA = \ figures/baobab_fullscan.png \ figures/baobab_prefs.png \ @@ -13,3 +11,9 @@ HELP_MEDIA = \ figures/baobab_ringschart2.png \ figures/baobab_treemaps.png \ figures/baobab_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