From 6ff969002ab8f07f547211a1111ce1a62e34ca17 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 4 Oct 2018 18:08:14 +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 863f554..abba156 100644 --- a/help/Makefile.am +++ b/help/Makefile.am @@ -17,4 +17,8 @@ HELP_MEDIA = \ figures/gpm-unplugged.png \ figures/gs-prefs.png -HELP_LINGUAS = ca de el en_GB es eu fi fr hu it oc pa ru 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