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 88 89 90
|
# MAKEFILE
#
# The code in this file is part of Pyxplot
# <http://www.pyxplot.org.uk>
#
# Copyright (C) 2006-2012 Dominic Ford <coders@pyxplot.org.uk>
#
# $Id: Makefile 1316 2012-12-16 17:50:57Z dcf21 $
#
# Pyxplot is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# You should have received a copy of the GNU General Public License along with
# Pyxplot; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301, USA
# ----------------------------------------------------------------------------
# Makefile for Pyxplot documentation directory
PYXPLOT = ../bin/pyxplot
EXAMPLEDIR = examples
FRAGDIR = fragments
EX_EPSDIR = $(EXAMPLEDIR)/eps
EX_TEXDIR = $(EXAMPLEDIR)/tex
EX_FRAGDIR = $(FRAGDIR)/tex
FIGFILES = $(wildcard $(EXAMPLEDIR)/*.ppl)
FRAGFILES = $(wildcard $(FRAGDIR)/*.ppl)
SOURCES = $(wildcard *.tex)
all: $(EX_EPSDIR)/timestamp $(EX_TEXDIR)/timestamp $(EX_FRAGDIR)/timestamp \
pyxplot-plain.ps pyxplot-plain.pdf pyxplot.pdf
clean:
rm -Rf $(EX_EPSDIR) $(EX_TEXDIR) $(EX_FRAGDIR)
rm -f *.pdf *.ps *.dvi *.aux *.idx *.ilg *.ind *.lob *.loe *.lof *.log *.out *.toc
$(EX_EPSDIR)/timestamp: $(FIGFILES) $(PYXPLOT) .pyxplotrc
python makeFigureEps.py $(PYXPLOT)
date > $(EX_EPSDIR)/timestamp
$(EX_TEXDIR)/timestamp: $(FIGFILES) $(PYXPLOT) .pyxplotrc
python makeFigureTex.py
date > $(EX_TEXDIR)/timestamp
$(EX_FRAGDIR)/timestamp: $(FRAGFILES) $(PYXPLOT) .pyxplotrc
python makeFragmentTex.py
date > $(EX_FRAGDIR)/timestamp
pyxplot-plain.pdf: pyxplot-plain.ps
echo "Making plain pdf documentation..."
ps2pdf $< $@
# Dependency on pyxplot-plain.dvi is a fudge so that 'make -j' doesn't parallelise pdflatex and latex
pyxplot.pdf: $(SOURCES) pyxplot-plain.dvi
echo "Making hyperref pdf documentation..."
rm -f *.aux *.idx *.ilg *.ind *.lob *.loe *.lof *.toc
pdflatex pyxplot
pdflatex pyxplot
pdflatex pyxplot
makeindex pyxplot.idx
pdflatex pyxplot
%.ps: %.dvi
echo "Making postscript documentation..."
dvips -Pcmz -Pamz $< -o $@
pyxplot-plain.dvi: $(SOURCES) $(EX_EPSDIR)/timestamp $(EX_TEXDIR)/timestamp $(EX_FRAGDIR)/timestamp
echo "Compiling documentation..."
rm -f *.aux *.idx *.ilg *.ind *.lob *.loe *.lof
latex pyxplot-plain.tex
latex pyxplot-plain.tex
latex pyxplot-plain.tex
makeindex pyxplot-plain.idx
latex pyxplot-plain.tex
test-examples:
python -u makeFigureEps.py $(PYXPLOT) test
for item in `cat examples.testlist`; do \
export e=$(EX_EPSDIR)/$${item}.eps; \
ls -l $$e; \
if [ ! -s "$$e" ]; then \
echo "$$e has zero length; tests failed"; exit 2; \
fi \
done
.PHONY: test-examples
|