docs: rebuild system report and test workflow

This commit is contained in:
2026-07-15 03:48:19 +08:00
parent 1b51f28263
commit 2359e7976c
21 changed files with 1176 additions and 516 deletions

View File

@@ -0,0 +1,25 @@
.PHONY: all figures metrics pdf check clean
DOT_SOURCES := $(wildcard figures/*.dot)
FIGURE_PDFS := $(DOT_SOURCES:.dot=.pdf)
all: pdf check
figures: $(FIGURE_PDFS)
figures/%.pdf: figures/%.dot
dot -Tpdf -Gfontnames=svg $< -o $@
metrics:
python3 tools/update_report_metrics.py
pdf: figures
latexmk -xelatex -interaction=nonstopmode -halt-on-error system_design_report.tex
check: pdf
@! rg -n 'undefined references|Citation .* undefined|Reference .* undefined|There were undefined references' system_design_report.log
@pdfinfo system_design_report.pdf | rg '^Pages:|^File size:'
clean:
latexmk -C system_design_report.tex
rm -f $(FIGURE_PDFS)