-article.pdf: article.tex
- pdflatex -halt-on-error $< </dev/null
+SRCS := $(wildcard *.tex)
+
+default: final.pdf
+
+once:
+ pdflatex -halt-on-error article.tex </dev/null
+
+final.pdf: $(SRCS)
+ $(MAKE) once
+ $(MAKE) once
+ $(MAKE) once
+ cp article.pdf final.pdf
+
+%.ps: %.pdf
+ pdftops $*.pdf $*.ps
clean:
rm -f *.aux *.log *.dvi *.out *.pdf *~