Skip to content

Commit 0e5cb84

Browse files
committed
Only call generate_release_cycle.py once via 'make html'
1 parent 0dec214 commit 0e5cb84

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,20 @@ _ensure-pre-commit:
103103
lint: _ensure-pre-commit
104104
$(VENVDIR)/bin/python3 -m pre_commit run --all-files
105105

106-
# Defined so that "include/release-cycle.json"
107-
# doesn't fall through to the catch-all target.
108-
include/release-cycle.json:
109-
@exit
110-
111-
$(_RELEASE_CYCLE): include/release-cycle.json
106+
# Generate all release cycle files together with a single script invocation
107+
# Use branches.csv as the primary target, others depend on it
108+
include/branches.csv:
112109
$(VENVDIR)/bin/python3 _tools/generate_release_cycle.py
113110
@echo Release cycle data generated.
114111

112+
# Other files are generated together with branches.csv
113+
include/end-of-life.csv: include/branches.csv
114+
@:
115+
include/release-cycle-all.svg: include/branches.csv
116+
@:
117+
include/release-cycle.svg: include/branches.csv
118+
@:
119+
115120
# Catch-all target: route all unknown targets to Sphinx using the new
116121
# "make mode" option.
117122
.PHONY: Makefile

0 commit comments

Comments
 (0)