summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2018-10-04 16:55:28 +0200
committerraveit65 <[email protected]>2018-10-06 14:48:48 +0200
commit95541ae6750b3bd7a127be39305f6d921286bc8d (patch)
treea213f2eb89807acb1adeb37810c03adbfa1b3c3b
parenta619c155662a6a0222449719a23d25f76622ffc9 (diff)
downloadengrampa-95541ae6750b3bd7a127be39305f6d921286bc8d.tar.bz2
engrampa-95541ae6750b3bd7a127be39305f6d921286bc8d.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