From 05fd8e60d18bc44ae55cf11a1ce8de4a720ecd55 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 6 Oct 2018 18:12:10 +0200 Subject: Use make functions for HELP_LINGUAS --- help/Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'help/Makefile.am') diff --git a/help/Makefile.am b/help/Makefile.am index 49c975b..a15b04f 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -16,5 +16,8 @@ HELP_MEDIA = figures/addColumn.png \ figures/systemMonitor.png \ figures/viewMenu.png -HELP_LINGUAS = ar bg ca cs da de el es fr oc pa sv 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))) ) -- cgit v1.2.1