docs: rebuild system report and test workflow
This commit is contained in:
25
doc/reports/system/Makefile
Normal file
25
doc/reports/system/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user