-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
87 lines (70 loc) · 3.42 KB
/
Makefile
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
76
77
78
79
80
81
82
83
84
85
86
87
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -n
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Try 'running pip install -r requirements.txt' to get the necessary Python dependencies.)
endif
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: index.rst _static/burndown.png help clean html epub changes linkcheck refresh-bib
#refresh-bib
index.rst: bin/generate_dmtn.py
PYTHONPATH=milestones python3 bin/generate_dmtn.py
_static/report.csv:
PYTHONPATH=milestones python3 milestones/milestones.py report --output=_static/report.csv
_static/blockschedule.pdf:
PYTHONPATH=milestones python3 milestones/milestones.py blockschedule --start-date -20 --output=_static/blockschedule.pdf
PYTHONPATH=milestones python3 milestones/milestones.py blockschedule --start-date -20 --output=_static/blockschedule.png
_static/burndown.png:
PYTHONPATH=milestones python3 milestones/milestones.py burndown --prefix="SIT COM SUM" --output=_static/burndown.png --months=3
PYTHONPATH=milestones python3 milestones/milestones.py burndown --prefix="SUM" --output=_static/burndownSUM.png --months=3
PYTHONPATH=milestones python3 milestones/milestones.py burndown --prefix="SIT" --output=_static/burndownSIT.png --months=3
PYTHONPATH=milestones python3 milestones/milestones.py burndown --prefix="COM" --output=_static/burndownCOM.png --months=3
_static/graph_%.png:
PYTHONPATH=milestones python3 milestones/milestones.py graph --wbs=$* [email protected]
dot -Tpng [email protected] > $@
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " epub to make an epub"
@echo " linkcheck to check all external links for integrity"
@echo " refresh-bib to update LSST bibliographies in lsstbib/"
clean:
rm -rf $(BUILDDIR)/*
git checkout index.rst
rm -f _static/burndown.png
rm -f _static/block*
html: index.rst _static/burndown.png _static/graph_06C.00.png _static/graph_06C.01.png _static/graph_06C.02.png _static/blockschedule.pdf _static/report.csv
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
mv $(BUILDDIR)/html/_static/rubin_logo.png $(BUILDDIR)/html/_static/lsst-logo-dark.svg
mv _static/blockschedule.pdf $(BUILDDIR)/html
mv _static/report.csv $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
refresh-bib:
mkdir -p lsstbib
refresh-lsst-bib -d lsstbib
@echo
@echo "Commit the new bibliographies: git add lsstbib && git commit -m \"Update bibliographies.\""