Build 771 B

123456789101112131415161718192021222324252627282930
  1. ifeq ($(CONFIG_LIBTRACEEVENT),y)
  2. perf-util-$(CONFIG_LIBPERL) += perl/Perf-Trace-Util/
  3. endif
  4. perf-util-$(CONFIG_LIBPYTHON) += python/Perf-Trace-Util/
  5. ifdef MYPY
  6. PY_TESTS := $(shell find python -type f -name '*.py')
  7. MYPY_TEST_LOGS := $(PY_TESTS:python/%=python/%.mypy_log)
  8. else
  9. MYPY_TEST_LOGS :=
  10. endif
  11. $(OUTPUT)%.mypy_log: %
  12. $(call rule_mkdir)
  13. $(Q)$(call echo-cmd,test)mypy "$<" > $@ || (cat $@ && rm $@ && false)
  14. perf-y += $(MYPY_TEST_LOGS)
  15. ifdef PYLINT
  16. PY_TESTS := $(shell find python -type f -name '*.py')
  17. PYLINT_TEST_LOGS := $(PY_TESTS:python/%=python/%.pylint_log)
  18. else
  19. PYLINT_TEST_LOGS :=
  20. endif
  21. $(OUTPUT)%.pylint_log: %
  22. $(call rule_mkdir)
  23. $(Q)$(call echo-cmd,test)pylint "$<" > $@ || (cat $@ && rm $@ && false)
  24. perf-y += $(PYLINT_TEST_LOGS)