summaryrefslogtreecommitdiff
path: root/gla11y.mk
blob: 5f7f805cb4d0f5847940e2a1ed3024728e9c0b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
GLA11Y_OUTPUT = ui-a11y.err
GLA11Y_SUPPR  = ui-a11y.suppr
GLA11Y_FALSE  = ui-a11y.false

a11y_verbose = $(a11y_verbose_@AM_V@)
a11y_verbose_ = $(a11y_verbose_@AM_DEFAULT_V@)
a11y_verbose_0 = @echo "  A11Y    " $@;
a11y_verbose_1 = 


all-local: $(GLA11Y_OUTPUT)
$(GLA11Y_OUTPUT): $(ui_files)
	$(a11y_verbose) if [[ $(GLA11Y) == *gla11y ]]; then \
		python3 $(GLA11Y) -P $(srcdir)/ -f $(srcdir)/$(GLA11Y_FALSE) -s $(srcdir)/$(GLA11Y_SUPPR) -o $@ $(ui_files:%=$(srcdir)/%); \
		fi

clean-local: clean-local-check
clean-local-check:
	-rm -f $(GLA11Y_OUTPUT)

.PHONY: clean-local-check