-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.44 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 1.44 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: all clean test card wedge drawer wedge-test drawer-test test-set format lint help
PYTHON := uv run python
BUILD_DIR := build
help:
@echo "PLOTTER build targets:"
@echo " make all - Build full-size parts (cards + wedge + drawer)"
@echo " make card - Build all card variants"
@echo " make wedge - Build full-size wedge body"
@echo " make drawer - Build full-size drawer"
@echo " make wedge-test - Build half-scale wedge for prototyping"
@echo " make drawer-test - Build half-scale drawer for prototyping"
@echo " make test-set - Build all half-scale prototype parts"
@echo " make test - Run pytest"
@echo " make format - Format code with ruff"
@echo " make lint - Lint code with ruff"
@echo " make clean - Remove build artifacts"
all: card wedge drawer
card: $(BUILD_DIR)
$(PYTHON) parts/card_standard.py
$(PYTHON) parts/card_wide.py
$(PYTHON) parts/card_thickness_test.py
wedge: $(BUILD_DIR)
$(PYTHON) parts/wedge.py
drawer: $(BUILD_DIR)
$(PYTHON) parts/drawer.py
wedge-test: $(BUILD_DIR)
$(PYTHON) parts/wedge_test.py
drawer-test: $(BUILD_DIR)
$(PYTHON) parts/drawer_test.py
test-set: wedge-test drawer-test card
test:
uv run pytest
format:
uv run ruff format src/ parts/ tests/ assemblies/
lint:
uv run ruff check src/ parts/ tests/ assemblies/
clean:
rm -rf $(BUILD_DIR)/*.stl $(BUILD_DIR)/*.step $(BUILD_DIR)/*.3mf
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)