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
|
# Makefile for Sphinx documentation
#
SPHINXBUILD = sphinx-build
PAPER = letter
BUILDDIR = _build
BIBFILE = xraydb.bib
.PHONY: html all epub latex pdf clean
html: bib
$(SPHINXBUILD) -a . $(BUILDDIR)/html
epub:
$(SPHINXBUILD) -a -b epub . $(BUILDDIR)/html
bib:
touch $(BIBFILE)
all: html pdf
latex: bib
$(SPHINXBUILD) -a -b latex . $(BUILDDIR)/latex
pdf: latex
cd $(BUILDDIR)/latex && make all-pdf
cp -pr $(BUILDDIR)/latex/xraydb.pdf $(BUILDDIR)/html/xraydb.pdf
clean:
-rm -rf $(BUILDDIR)/*
tarball: html pdf
cd $(BUILDDIR)/html
tar cvzf ../../../_doc.tgz *
cd ../..
|