summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorrbuj <[email protected]>2018-10-06 20:18:38 +0200
committerraveit65 <[email protected]>2018-10-08 12:53:05 +0200
commit6f31ccc532eb93896ca7714385c7f3756150c08c (patch)
tree094667d55448e86733c0d0d7cd2068c4a94c7959 /help
parentf5468ec4710e1d2d9f87d2497ea0a40e5793b0ad (diff)
downloadmate-calc-6f31ccc532eb93896ca7714385c7f3756150c08c.tar.bz2
mate-calc-6f31ccc532eb93896ca7714385c7f3756150c08c.tar.xz
Use make functions for HELP_LINGUAS
Diffstat (limited to 'help')
-rw-r--r--help/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/help/Makefile.am b/help/Makefile.am
index 66caf06..fe66358 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -29,7 +29,11 @@ HELP_FILES = absolute.page \
trigonometry.page \
variables.page
-HELP_LINGUAS = bg ca cs de el es eu fi fr gl hu it ja ko lv oc pt_BR ro ru sl sv te zh_CN zh_HK zh_TW
+# 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))) )
DISTCLEANFILES = \
Makefile.in