forked from jakobtfaber/Faber2026
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (55 loc) · 2.6 KB
/
Copy pathMakefile
File metadata and controls
75 lines (55 loc) · 2.6 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Faber2026 manuscript build and pinned analysis delegation.
MAIN := main
UV ?= uv
FABER2026_ROOT := $(CURDIR)
.PHONY: all clean watch prepare-provenance check-manuscript check-state check-provenance test-science figures figure-review-status figure-review-next kb-index kb-refs-sync notes-serve notes wayfinder-plan wayfinder-status wayfinder-launch
all: $(MAIN).pdf
$(MAIN).pdf: $(MAIN).tex auth.tex sections/*.tex bib/refs.bib
latexmk -pdf -interaction=nonstopmode -halt-on-error $(MAIN).tex
watch:
latexmk -pdf -pvc -interaction=nonstopmode $(MAIN).tex
clean:
latexmk -C
rm -f $(MAIN).bbl
prepare-provenance:
python3 scripts/fetch_provenance_commits.py
check-state:
FABER2026_ROOT="$(FABER2026_ROOT)" \
python3 analysis/scripts/sync_state.py --check --offline
check-manuscript:
python3 scripts/check_claim_anchors.py "$(FABER2026_ROOT)"
FABER2026_ROOT="$(FABER2026_ROOT)" \
python3 analysis/scripts/render_results_registry.py --check
python3 scripts/check_manuscript_paths.py "$(FABER2026_ROOT)"
check-provenance: check-state check-manuscript
FABER2026_ROOT="$(FABER2026_ROOT)" python3 analysis/scripts/figure_review.py verify
$(MAKE) -C analysis test-manuscript MANUSCRIPT_ROOT="$(FABER2026_ROOT)"
$(UV) run --project analysis --group test --frozen \
python analysis/scripts/render_dm_measurements_table.py --check
$(UV) run --project analysis --group test --frozen \
python analysis/scripts/render_budget_table.py --check
test-science: check-provenance
$(MAKE) -C analysis test MANUSCRIPT_ROOT="$(FABER2026_ROOT)"
figures:
FABER2026_ROOT="$(FABER2026_ROOT)" $(UV) run --project analysis --frozen \
python analysis/scripts/figure_flow.py regen --manuscript --clone-ok
figure-review-status:
FABER2026_ROOT="$(FABER2026_ROOT)" $(UV) run --project analysis \
--group test --frozen python analysis/scripts/figure_review.py status
figure-review-next:
FABER2026_ROOT="$(FABER2026_ROOT)" $(UV) run --project analysis \
--group test --frozen python analysis/scripts/figure_review.py next
kb-index:
$(MAKE) -C analysis kb-index MANUSCRIPT_ROOT="$(FABER2026_ROOT)"
kb-refs-sync:
$(MAKE) -C analysis kb-refs-sync MANUSCRIPT_ROOT="$(FABER2026_ROOT)"
notes-serve:
$(MAKE) -C analysis notes-serve MANUSCRIPT_ROOT="$(FABER2026_ROOT)"
notes:
$(MAKE) -C analysis notes MANUSCRIPT_ROOT="$(FABER2026_ROOT)" MSG="$(MSG)"
wayfinder-plan:
$(MAKE) -C analysis wayfinder-plan MANUSCRIPT_ROOT="$(FABER2026_ROOT)" WAVE="$(WAVE)"
wayfinder-status:
$(MAKE) -C analysis wayfinder-status MANUSCRIPT_ROOT="$(FABER2026_ROOT)"
wayfinder-launch:
$(MAKE) -C analysis wayfinder-launch MANUSCRIPT_ROOT="$(FABER2026_ROOT)" WAVE="$(WAVE)"