update Makefile
[linuxnijmegen-make.git] / Makefile
1 DOC:=make
2 LATEX:=latex
3 LATEXFLAGS:=-file-line-error -halt-on-error -no-shell-escape
4 TEXS:=$(wildcard *.tex)
5
6 .PHONY: all clean
7 .SECONDARY: $(DOC).fmt
8
9 all: $(DOC).dvi
10
11 %.fmt: preamble.tex
12 $(LATEX) $(LATEXFLAGS) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump"
13
14 %.dvi: %.tex %.fmt $(TEXS)
15 $(LATEX) $(LATEXFLAGS) $<
16 $(LATEX) $(LATEXFLAGS) $<
17
18 clean:
19 $(RM) $(addprefix $(DOC).,dvi pdf log aux nav toc out snm fmt ps* vrb mlog)