Skip to content

Commit

Permalink
Use make functions for HELP_LINGUAS
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and raveit65 committed Oct 6, 2018
1 parent 44ccf5a commit 2d6e71b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions help/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
@YELP_HELP_RULES@

HELP_ID = mate-control-center
HELP_FILES = index.docbook config-accessibility-keyboard.xml config-background.xml config-behavior.xml config-cds.xml config-default-apps.xml config-file-type.xml config-hints.xml config-html.xml config-kbd.xml config-keybindings.xml config-mouse.xml config-screensaver.xml config-themes.xml
HELP_FILES = \
index.docbook \
config-accessibility-keyboard.xml \
config-background.xml \
config-behavior.xml \
config-cds.xml \
config-default-apps.xml \
config-file-type.xml \
config-hints.xml \
config-html.xml \
config-kbd.xml \
config-keybindings.xml \
config-mouse.xml \
config-screensaver.xml \
config-themes.xml

HELP_LINGUAS = ca ca@valencia cs de el en_GB es fr id it ja oc pa pl pt pt_BR ru sv th 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

0 comments on commit 2d6e71b

Please sign in to comment.