Skip to content

Commit ec7fbea

Browse files
committed
up make
1 parent c40325e commit ec7fbea

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

Makefile

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
99
REPORTDIR = _reports
10-
1110
# Internal variables.
1211
PAPEROPT_a4 = -D latex_paper_size=a4
1312
PAPEROPT_letter = -D latex_paper_size=letter
@@ -29,7 +28,7 @@ help:
2928
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
3029

3130
clean:
32-
-rm -rf $(BUILDDIR)/*
31+
-rm -rf $(BUILDDIR)/* $(REPORTDIR)
3332

3433
html:
3534
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@@ -62,12 +61,27 @@ qthelp:
6261
@echo
6362
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
6463
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
65-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/UrbanThematicExploitationPlatform.qhcp"
64+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/E-CEODataChallengesplatform.qhcp"
6665
@echo "To view the help file:"
67-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/UrbanThematicExploitationPlatform.qhc"
66+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/E-CEODataChallengesplatform.qhc"
6867

6968
latex:
7069
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
70+
sed -i.bak 's/{\\hyperref\[\(.*\:req-[0-9]*\)\]{.*}}/{\\autoref{\1}}/g' $(BUILDDIR)/latex/*.tex
71+
sed -i.bak 's/\\begin{longtable}{|l|l|l|}/\\begin{longtable}{|l|l|p{10cm}|}/g' $(BUILDDIR)/latex/*.tex
72+
cp source/_templates/*.sty $(BUILDDIR)/latex
73+
cp source/_static/* $(BUILDDIR)/latex
74+
@echo
75+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
76+
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
77+
"run these through (pdf)latex."
78+
79+
latex-mac:
80+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
81+
sed -i .bak 's/{\\hyperref\[\(.*\:req-[0-9]*\)\]{.*}}/{\\autoref{\1}}/g' $(BUILDDIR)/latex/*.tex
82+
sed -i .bak 's/$\\begin{longtable}{|l|l|l|}/\begin{longtable}{|l|l|p{10cm}|}/g' $(BUILDDIR)/latex/*.tex
83+
cp source/_templates/*.sty $(BUILDDIR)/latex
84+
cp source/_static/* $(BUILDDIR)/latex
7185
@echo
7286
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
7387
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
@@ -88,3 +102,17 @@ doctest:
88102
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
89103
@echo "Testing of doctests in the sources finished, look at the " \
90104
"results in $(BUILDDIR)/doctest/output.txt."
105+
106+
man:
107+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
108+
@echo
109+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
110+
111+
test:
112+
mkdir $(REPORTDIR)
113+
`which py.test` --tb=line -v --junitxml=$(REPORTDIR)/junit.xml check_sphinx.py
114+
115+
pdf:
116+
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
117+
@echo
118+
@echo "Build finished. The PDF files are in $(BUILDDIR)/pdf."

0 commit comments

Comments
 (0)