scyther/manual/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

IMG= flow.epsi flow-simple.epsi
DEPS= preamble.tex macros.tex
MSC= msc-ns.pdf
all: scyther-manual.pdf scyther-manual-draft.pdf
%.epsi: %.dot
dot -Tps $< >$(addsuffix '.ps',$(basename $@))
ps2epsi $(addsuffix '.ps',$(basename $@))
msc-%.pdf: msc-%.tex $(DEPS)
latex -jobname msc-file "\input{mscstart.tex}\input{$<}\input{mscend.tex}"
dvips -t a3 msc-file.dvi -o
ps2eps -f msc-file.ps
\rm -f msc-file.ps
epstopdf msc-file.eps
mv msc-file.pdf `basename $< tex`pdf
mv msc-file.eps `basename $< tex`eps
scyther-manual.pdf: scyther-manual.tex biblio.bib $(IMG) $(DEPS) $(MSC)
pdflatex scyther-manual.tex
makeindex scyther-manual
bibtex scyther-manual
pdflatex scyther-manual.tex
pdflatex scyther-manual.tex
# Copy to expected location
cp scyther-manual.pdf ../gui/
SDRAFT= --jobname=scyther-manual-draft "\def\draftversion{yes}\input{scyther-manual}"
scyther-manual-draft.pdf: scyther-manual.tex biblio.bib $(IMG) $(DEPS) $(MSC)
pdflatex $(SDRAFT)
makeindex scyther-manual
bibtex scyther-manual
pdflatex $(SDRAFT)
pdflatex $(SDRAFT)
clean:
\rm -f *.aux
\rm -f *.log
\rm -f *.bbl
\rm -f *.blg
\rm -f *.ind
\rm -f $(addsuffix '.ps',$(basename $(IMG)))
realclean: clean
\rm -f $(IMG)
\rm -f $(MSC)
\rm -f scyther-manual-draft.pdf
\rm -f scyther-manual.pdf