X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=Makefile;h=7a4f7d4f0dec6fe44aba5ee66feee96a205859e4;hp=1713c65b06549eba6d58134590a5ea2055bb4b97;hb=f4b799f5604417c83c799c3ff513864502f5ef67;hpb=7dc335c17ae313c006e2283a35ca214b213ffcd9 diff --git a/Makefile b/Makefile index 1713c65..7a4f7d4 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,27 @@ SRCS := $(wildcard *.tex) -default: article.pdf +default: final.pdf final.ps -article.pdf: $(SRCS) +once: revid.inc pdflatex -halt-on-error article.tex /dev/null) +HEADDEPS:=$(addprefix $(GITDIR), HEAD $(HEADREF)) + +revid.inc: .git-revid $(SRCS) Makefile $(HEADDEPS) + ./$< >$@.new + cmp $@.new $@ || mv -f $@.new $@ + +final.pdf: $(SRCS) revid.inc + $(MAKE) once + $(MAKE) once + $(MAKE) once + cp article.pdf final.pdf + +%.ps: %.pdf + pdftops $*.pdf $*.ps clean: - rm -f *.aux *.log *.dvi *.out *.pdf *~ + rm -f *.aux *.log *.dvi *.out *.pdf *.ps *~