graphics, listings en algorithmen toegevoegd
[linuxnijmegen-latex.git] / Makefile
1 LATEX:=pdflatex
2 DOCUMENT:=lat
3 IMGS:=tux.png
4 MISC:=broncode.c broncode.tex
5
6 .SECONDARY: $(DOCUMENT).fmt $(addsuffix .png,$(basename $(IMGS)))
7
8 all: $(DOCUMENT).pdf
9
10 %.pdf: %.tex %.fmt $(IMGS) $(MISC)
11 $(LATEX) $(basename $@)
12 $(LATEX) $(basename $@)
13
14 %.fmt: pre.tex
15 $(LATEX) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
16
17 %.png: %.svg
18 convert $< $@
19
20 clean:
21 $(RM) -v $(addprefix $(DOCUMENT).,fmt aux bbl blg dvi log out toc pdf snm nav vrb) $(IMGS)