SPB Git

Repository Public License Research preview

Makefile 3.3 KB 77 lines make

1# ATLAS IA — build and quality interface. Run `make help`.2# SESSION=S01 restricts a target to one session; without it, targets cover every session at status draft or beyond.3PYTHON ?= python34SESSION ?=5S := $(if $(SESSION),--session $(SESSION),)67.DEFAULT_GOAL := help8.PHONY: help setup sync slides handouts notes print web figures shared preview demo demos test tests lint qa catalog \9        docs-render links clean1011help: ## Show this help12	@grep -E '^[a-z-]+:.*## ' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf "  %-12s %s\n", $$1, $$2}'1314setup: ## Verify the toolchain (LuaLaTeX, latexmk, biber, poppler, Python packages)15	@$(PYTHON) tools/check_toolchain.py1617sync: ## Regenerate files derived from course.yaml (LaTeX identity macros, planned sessions)18	@$(PYTHON) tools/sync_course.py1920slides: sync ## Compile decks -> dist/slides/SXX.pdf21	@$(PYTHON) tools/build.py slides $(S)2223handouts: sync ## Compile print-friendly handouts -> dist/slides/SXX-handout.pdf24	@$(PYTHON) tools/build.py slides --variant handout $(S)2526notes: sync ## Compile decks with interleaved speaker notes -> dist/slides/SXX-notes.pdf27	@$(PYTHON) tools/build.py slides --variant notes $(S)2829web: sync ## Compile the web exports used by the online platform -> dist/slides/SXX-web.pdf, SXX-web-light.pdf30	@$(PYTHON) tools/build.py slides --variant web $(S)31	@$(PYTHON) tools/build.py slides --variant web-light $(S)3233figures: ## Render every figure source to PDF/PNG/SVG previews34	@$(PYTHON) tools/build.py shared35	@$(PYTHON) tools/build.py figures $(S)3637preview: ## Render slide images and contact sheets for visual review -> dist/preview/38	@$(PYTHON) tools/render_preview.py $(S)3940demo demos: ## Run the demonstration(s) and show their output41	@$(PYTHON) tools/validate_labs.py --demo-only --show $(S)4243test tests: ## Run repository tests and the demo/lab tests44	@$(PYTHON) -m pytest -q tests $(if $(SESSION),sessions/$(SESSION)-*/demos/tests,sessions)4546docs-render: ## Regenerate quiz explanations and alt-text files from their YAML sources47	@$(PYTHON) tools/render_docs.py $(S)4849catalog: ## Regenerate curriculum, course map, catalog and status reports50	@$(PYTHON) tools/generate_catalog.py51	@$(PYTHON) tools/validate_assets.py --write >/dev/null5253lint: ## Structure, metadata, LaTeX sources, assets, secrets, quizzes, accessibility, source registry54	@$(PYTHON) tools/sync_course.py --check55	@$(PYTHON) tools/generate_catalog.py --check56	@$(PYTHON) tools/render_docs.py --check57	@$(PYTHON) tools/validate_structure.py58	@$(PYTHON) tools/validate_latex.py $(S)59	@$(PYTHON) tools/validate_assets.py $(S)60	@$(PYTHON) tools/validate_quizzes.py $(S)61	@$(PYTHON) tools/validate_accessibility.py $(S)62	@$(PYTHON) tools/validate_links.py $(S)6364links: ## Check that source URLs resolve (needs network) -> reports/links.json65	@$(PYTHON) tools/validate_links.py --online $(S)6667qa: slides handouts preview lint ## Everything: build, preview, lint, labs, tests, status report68	@$(PYTHON) tools/validate_labs.py $(S)69	@$(PYTHON) -m pytest -q tests sessions70	@$(PYTHON) tools/generate_catalog.py71	@echo "QA finished. See reports/STATUS.md. Visual review is recorded by a person in sessions/SXX/qa/results.json."7273clean: ## Remove generated outputs only (dist/ and caches); never sources or rendered previews74	@rm -rf dist .pytest_cache75	@find . -name __pycache__ -type d -prune -exec rm -rf {} +76	@echo "Removed dist/ and caches."77
Files main
Menu

Theme