xref: /linux/tools/perf/scripts/Build (revision 168910d0f9377b23b98404c88c13d4c51cdc5f15)
180c3a7d9SAdrian Hunterifeq ($(CONFIG_LIBTRACEEVENT),y)
2e467705aSIan Rogers  perf-util-$(CONFIG_LIBPERL)   += perl/Perf-Trace-Util/
380c3a7d9SAdrian Hunterendif
4e467705aSIan Rogersperf-util-$(CONFIG_LIBPYTHON) += python/Perf-Trace-Util/
5*168910d0SIan Rogers
6*168910d0SIan Rogersifdef MYPY
7*168910d0SIan Rogers  PY_TESTS := $(shell find python -type f -name '*.py')
8*168910d0SIan Rogers  MYPY_TEST_LOGS := $(PY_TESTS:python/%=python/%.mypy_log)
9*168910d0SIan Rogerselse
10*168910d0SIan Rogers  MYPY_TEST_LOGS :=
11*168910d0SIan Rogersendif
12*168910d0SIan Rogers
13*168910d0SIan Rogers$(OUTPUT)%.mypy_log: %
14*168910d0SIan Rogers	$(call rule_mkdir)
15*168910d0SIan Rogers	$(Q)$(call echo-cmd,test)mypy "$<" > $@ || (cat $@ && rm $@ && false)
16*168910d0SIan Rogers
17*168910d0SIan Rogersperf-y += $(MYPY_TEST_LOGS)
18