X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=Makefile;h=88cfc3b873c973fdd36bab1232b5e6de80edb954;hp=0f2016e40426218384848c911c789702a98bf9d9;hb=dbc2fa88cece12d33ca5788ad5d359f77676a802;hpb=c5c1e92428e7289249f68b4ecc39cca4b629f209 diff --git a/Makefile b/Makefile index 0f2016e..88cfc3b 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,15 @@ default: final.pdf 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) +final.pdf: $(SRCS) revid.inc $(MAKE) once $(MAKE) once $(MAKE) once @@ -20,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 *~