aboutsummaryrefslogtreecommitdiff
path: root/Makefile.sphinx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-01-28 16:04:02 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-01-28 16:04:02 -0200
commitfbc89c55742bac11a8e0a70e9535946a51e6fd11 (patch)
tree564e5ad62751f901cab51d3a4f0f2347dd04be0b /Makefile.sphinx
parent4b3b18baaff455df5c0350fc1cab9b83afd40686 (diff)
downloadtemplates-fbc89c55742bac11a8e0a70e9535946a51e6fd11.tar.gz
templates-fbc89c55742bac11a8e0a70e9535946a51e6fd11.tar.bz2
Updates EPUB config
Diffstat (limited to 'Makefile.sphinx')
-rw-r--r--Makefile.sphinx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.sphinx b/Makefile.sphinx
index 8374b4c..6e807c9 100644
--- a/Makefile.sphinx
+++ b/Makefile.sphinx
@@ -94,6 +94,8 @@ epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+ @cp $(BUILDDIR)/epub/*epub _static/
+ @echo "A copy was made to _static/."
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@@ -107,6 +109,8 @@ latexpdf:
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+ @cp $(BUILDDIR)/latex/*pdf _static/
+ @echo "A copy was made to _static/."
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@@ -153,7 +157,7 @@ doctest:
"results in $(BUILDDIR)/doctest/output.txt."
#web: clean epub latexpdf html
-web: clean html
+web: clean epub html
web_deploy:
@rsync -avz --delete _build/html/ templates:/var/sites/templates/www/