Skip to content

Commit 6f31ccc

Browse files
rbujraveit65
authored andcommitted
Use make functions for HELP_LINGUAS
1 parent f5468ec commit 6f31ccc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

help/Makefile.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ HELP_FILES = absolute.page \
2929
trigonometry.page \
3030
variables.page
3131

32-
HELP_LINGUAS = bg ca cs de el es eu fi fr gl hu it ja ko lv oc pt_BR ro ru sl sv te zh_CN zh_HK zh_TW
32+
# Add linguas to be ignored, e.g. IGNORE_HELP_LINGUAS = ca de es fr
33+
IGNORE_HELP_LINGUAS =
34+
HELP_LINGUAS = $(if $(IGNORE_HELP_LINGUAS), \
35+
$(filter-out $(IGNORE_HELP_LINGUAS),$(subst /,,$(dir $(wildcard */*.po)))), \
36+
$(subst /,,$(dir $(wildcard */*.po))) )
3337

3438
DISTCLEANFILES = \
3539
Makefile.in

0 commit comments

Comments
 (0)