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/ 5168910d0SIan Rogers 6168910d0SIan Rogersifdef MYPY 7168910d0SIan Rogers PY_TESTS := $(shell find python -type f -name '*.py') 8168910d0SIan Rogers MYPY_TEST_LOGS := $(PY_TESTS:python/%=python/%.mypy_log) 9168910d0SIan Rogerselse 10168910d0SIan Rogers MYPY_TEST_LOGS := 11168910d0SIan Rogersendif 12168910d0SIan Rogers 13168910d0SIan Rogers$(OUTPUT)%.mypy_log: % 14168910d0SIan Rogers $(call rule_mkdir) 15168910d0SIan Rogers $(Q)$(call echo-cmd,test)mypy "$<" > $@ || (cat $@ && rm $@ && false) 16168910d0SIan Rogers 17168910d0SIan Rogersperf-y += $(MYPY_TEST_LOGS) 18*8a54784eSIan Rogers 19*8a54784eSIan Rogersifdef PYLINT 20*8a54784eSIan Rogers PY_TESTS := $(shell find python -type f -name '*.py') 21*8a54784eSIan Rogers PYLINT_TEST_LOGS := $(PY_TESTS:python/%=python/%.pylint_log) 22*8a54784eSIan Rogerselse 23*8a54784eSIan Rogers PYLINT_TEST_LOGS := 24*8a54784eSIan Rogersendif 25*8a54784eSIan Rogers 26*8a54784eSIan Rogers$(OUTPUT)%.pylint_log: % 27*8a54784eSIan Rogers $(call rule_mkdir) 28*8a54784eSIan Rogers $(Q)$(call echo-cmd,test)pylint "$<" > $@ || (cat $@ && rm $@ && false) 29*8a54784eSIan Rogers 30*8a54784eSIan Rogersperf-y += $(PYLINT_TEST_LOGS) 31