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:54:11 +0200
commita279b863df83352c06869e4ecd328593ab1039ed (patch)
tree5e9830047ae113b13ea6592595291c3963f284b5 /help
parent39634c1ac6567583cb36662f72808c96c4be4fb3 (diff)
downloadmate-calc-a279b863df83352c06869e4ecd328593ab1039ed.tar.bz2
mate-calc-a279b863df83352c06869e4ecd328593ab1039ed.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