-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
34 lines (24 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
packages_by_priority := webknossos cluster_tools docs
packages_by_dependency := cluster_tools webknossos docs
code_packages := cluster_tools webknossos
define in_each_pkg_by_dependency
for PKG in $(packages_by_dependency); do echo $$PKG; cd $$PKG; $1; cd ..; done
endef
define in_each_code_pkg
for PKG in $(code_packages); do echo $$PKG; cd $$PKG; $1; cd ..; done
endef
.PHONY: list_packages_by_priority update update-internal install format lint typecheck flt test
list_packages_by_priority:
@echo $(packages_by_priority)
install:
$(call in_each_pkg_by_dependency, uv sync --all-extras)
format:
$(call in_each_code_pkg, ./format.sh)
lint:
$(call in_each_code_pkg, ./lint.sh)
typecheck:
$(call in_each_code_pkg, ./typecheck.sh)
flt:
$(call in_each_code_pkg, ./format.sh && ./lint.sh && ./typecheck.sh)
test:
$(call in_each_code_pkg, ./test.sh)