Skip to content

Commit f90d157

Browse files
author
raveit65
committed
Use make functions for HELP_LINGUAS
1 parent c2750bb commit f90d157

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

mate-user-guide/Makefile.am

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@ HELP_MEDIA = \
7373
figures/yelp_preferences.png \
7474
figures/yelp_window.png
7575

76-
HELP_LINGUAS = af am ar as ast az be bg bn bn_IN br bs ca ca@valencia cmn crh \
77-
cs cy da de dz el en_AU en_CA en_GB eo es es_CO et eu fa fi fr \
78-
ga gl gu he hi hr hu hy id is it ja ka kk kn ko ku ku_IQ ky lt \
79-
lv mai mg mk ml mn mr ms nb nds ne nl nn oc or pa pl ps pt pt_BR\
80-
ro ru si sk sl sq sr sr@latin sv ta te th tr ug uk ur uz vi xh \
81-
zh_CN zh_HK zh_TW
82-
76+
# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
77+
IGNORE_HELP_LINGUAS =
78+
HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
79+
$(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
80+
$(subst /,,$(dir $(wildcard */*.po))) )
8381

8482
@INTLTOOL_DESKTOP_RULE@
8583

0 commit comments

Comments
 (0)