X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=Makefile;h=7a4f7d4f0dec6fe44aba5ee66feee96a205859e4;hp=8bd84b3ea7214db1a1719fad188214b3a10cbfd9;hb=504314d4eb8beba3ea97850f02e89500bfd9b2bf;hpb=0a0e7dc7722547a9ae7f9f30de4a98d0260c905a diff --git a/Makefile b/Makefile index 8bd84b3..7a4f7d4 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,20 @@ SRCS := $(wildcard *.tex) -default: final.pdf +default: final.pdf final.ps -once: +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 @@ -16,4 +24,4 @@ final.pdf: $(SRCS) pdftops $*.pdf $*.ps clean: - rm -f *.aux *.log *.dvi *.out *.pdf *~ + rm -f *.aux *.log *.dvi *.out *.pdf *.ps *~