3 .PHONY
: test clean refresh help
25 export SBY_WORKDIR_GITIGNORE
=1
26 export SBY_MAIN
=$(realpath
$(dir $(firstword $(MAKEFILE_LIST
)))/..
/sbysrc
/sby.py
)
28 make
/rules
/collect.mk
: make
/collect_tests.py
29 python3 make
/collect_tests.py
32 python3 make
/test_rules.py
$<
34 ifneq (help
,$(MAKECMDGOALS
))
36 # This should run every time but only trigger anything depending on it whenever
37 # the script overwrites make/rules/found_tools. This doesn't really match how
38 # make targets usually work, so we manually shell out here.
40 FIND_TOOLS
:= $(shell python3 make
/required_tools.py || echo error
)
42 ifneq (,$(findstring error
,$(FIND_TOOLS
)))
43 $(error could not run
'python3 make/required_tools.py')
46 ifneq (,$(FIND_TOOLS
))
47 $(warning
$(FIND_TOOLS
))
50 include make
/rules
/collect.mk