summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2018-10-04 18:08:14 +0200
committerraveit65 <[email protected]>2018-10-07 09:10:38 +0200
commit6ff969002ab8f07f547211a1111ce1a62e34ca17 (patch)
tree86188792789e95ff743e69eb727ce623b71707f4
parentc67ebc725427932da41bb35e76fbc34456e15a6f (diff)
downloadmate-power-manager-6ff969002ab8f07f547211a1111ce1a62e34ca17.tar.bz2
mate-power-manager-6ff969002ab8f07f547211a1111ce1a62e34ca17.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 863f554..abba156 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -17,4 +17,8 @@ HELP_MEDIA = \
figures/gpm-unplugged.png \
figures/gs-prefs.png
-HELP_LINGUAS = ca de el en_GB es eu fi fr hu it oc pa ru sv 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))) )