doc-src/Codegen/Makefile
author haftmann
Thu, 26 Mar 2009 13:01:09 +0100
changeset 30734 ab05be086c4a
parent 30226 2f4684e2ea95
child 30882 d15725e84091
permissions -rw-r--r--
step towards proper pictures in dvi


## targets

default: dvi


## dependencies

include ../Makefile.in

NAME = codegen

FILES = $(NAME).tex Thy/document/*.tex \
  style.sty ../iman.sty ../extra.sty ../isar.sty \
  ../isabelle.sty ../isabellesym.sty ../pdfsetup.sty \
  ../manual.bib ../proof.sty

dvi: $(NAME).dvi

$(NAME).dvi: $(FILES) isabelle_isar.eps Thy/pictures/architecture.eps Thy/pictures/adaption.eps
	$(LATEX) $(NAME)
	$(BIBTEX) $(NAME)
	$(LATEX) $(NAME)
	$(LATEX) $(NAME)

pdf: $(NAME).pdf

$(NAME).pdf: $(FILES) isabelle_isar.pdf Thy/pictures/architecture.pdf Thy/pictures/adaption.pdf
	$(PDFLATEX) $(NAME)
	$(BIBTEX) $(NAME)
	$(PDFLATEX) $(NAME)
	$(PDFLATEX) $(NAME)
	$(FIXBOOKMARKS) $(NAME).out
	$(PDFLATEX) $(NAME)
	$(PDFLATEX) $(NAME)

Thy/pictures/%.dvi: Thy/pictures/%.tex
	latex -output-directory=$(dir $@) $<

Thy/pictures/%.eps: Thy/pictures/%.dvi
	dvips -E -o $@ $<

Thy/pictures/%.pdf: Thy/pictures/%.eps
	epstopdf --outfile=$@ $<