X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=Makefile;h=7a4f7d4f0dec6fe44aba5ee66feee96a205859e4;hp=3c82b5b7afbb2f5d5bf21797e7c2f5eb73db4c80;hb=eb02216495da42d7de57d8ecf16b62dd50d2baf2;hpb=4950c943286e5e543ffaafa15b80504744f6b993 diff --git a/Makefile b/Makefile index 3c82b5b..7a4f7d4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,27 @@ -article.pdf: article.tex - pdflatex -halt-on-error $< /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 *~