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
|
# Makefile for ProDy Documentation
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER = letter
BUILD = _build
HTML = $(BUILD)/html
LATEX = $(BUILD)/latex
WORKDIR = _workdir
PDFNAME = ProDy.pdf
PDFPATH = $(LATEX)/$(PDFNAME)
.PHONY: help clean remove html pdf
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make HTML files of reference manual "
@echo " pdf to make PDF files of reference manual"
@echo " build to make HTML and PDF files, and copy PDF into HTML folder"
clean:
-rm -rf $(BUILD)/*
remove:
-rm -rf $(HTML)/* $(LATEX)/*
workdir:
mkdir -p $(WORKDIR)
html: workdir
cd $(WORKDIR); $(SPHINXBUILD) -b html -d ../$(BUILD)/doctrees ../ ../$(HTML)
@echo
@echo "Build finished. The HTML pages are in $(BUILD)/html."
pdf: workdir
cd $(WORKDIR); $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) -d ../$(BUILD)/doctrees ../ ../$(LATEX)
make -C $(BUILD)/latex all-pdf
@echo
@echo "PDF file is ready, see $(PDFPATH)."
build: html pdf
mv -f $(PDFPATH) $(HTML)/$(PDFNAME)
|