summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-11-15 16:12:58 +0100
committerraveit65 <[email protected]>2018-11-15 17:03:16 +0100
commit8bf0fa7ea32a607a499d516aeb9658534fe3ac63 (patch)
tree95bfff0d71d77bea3ba5c5af780a6f9e1ad16984 /help
parent413f6ccdfc9db844033f1d1e5e205052eb3fd44b (diff)
downloadatril-8bf0fa7ea32a607a499d516aeb9658534fe3ac63.tar.bz2
atril-8bf0fa7ea32a607a499d516aeb9658534fe3ac63.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 d847b21d..a711b85e 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -6,6 +6,10 @@ HELP_ID = atril
HELP_FILES = index.docbook legal.xml
HELP_MEDIA = figures/atril_start_window.png
-HELP_LINGUAS = bg ca cs de el en_GB es eu fi fr it ja nl oc pt_BR ru sl sr sv uk vi 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