From 8ef808ee4063e8d3915d6d3a0d540bb945005368 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 4 Oct 2018 16:55:28 +0200 Subject: 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 93fcb38..ab64d33 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -9,6 +9,10 @@ HELP_MEDIA = \ figures/engrampa_rightarrow.png \ figures/engrampa_uparrow.png -HELP_LINGUAS = bg ca cs de el en_GB es fi fr it ja oc nl ru sv vi uk 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 -- cgit v1.2.1