From 9ecc6730f6123b1875b1e586fadef2716e76adce Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 25 Dec 2018 11:32:12 +0100 Subject: Use make functions for HELP_LINGUAS --- help/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/help/Makefile.am b/help/Makefile.am index 30266a8..9c2ed83 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -7,6 +7,11 @@ HELP_MEDIA = figures/file-sharing-preferences.png \ figures/sharing-over-bluetooth.png \ figures/receiving-over-bluetooth.png -HELP_LINGUAS = ca cs de el en_GB es fr it pt_BR ro sl 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))) ) + -include $(top_srcdir)/git.mk -- cgit v1.2.1