summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2018-10-04 16:55:28 +0200
committerraveit65 <[email protected]>2018-10-06 14:47:47 +0200
commit8ef808ee4063e8d3915d6d3a0d540bb945005368 (patch)
tree58a0ed36cdaf608c1bed19488a1918a509531e98
parent1cdc45236a57fb4ebfa6117c4f53bc3640b9d699 (diff)
downloadengrampa-8ef808ee4063e8d3915d6d3a0d540bb945005368.tar.bz2
engrampa-8ef808ee4063e8d3915d6d3a0d540bb945005368.tar.xz
Use make functions for HELP_LINGUAS
-rw-r--r--help/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/help/Makefile.am b/help/Makefile.am
index 93fcb38..ab64d33 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -9,6 +9,10 @@ HELP_MEDIA = \
figures/engrampa_rightarrow.png \
figures/engrampa_uparrow.png
-HELP_LINGUAS = bg ca cs de el en_GB es fi fr it ja oc nl ru sv vi uk 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