2 SRCS := $(wildcard *.tex)
4 default: final.pdf final.ps
7 pdflatex -halt-on-error article.tex </dev/null
9 GITDIR:=$(addsuffix /, $(shell git rev-parse --git-dir))
10 HEADREF:=$(shell git symbolic-ref HEAD 2>/dev/null)
11 HEADDEPS:=$(addprefix $(GITDIR), HEAD $(HEADREF))
13 revid.inc: .git-revid $(SRCS) Makefile $(HEADDEPS)
15 cmp $@.new $@ || mv -f $@.new $@
17 final.pdf: $(SRCS) revid.inc
21 cp article.pdf final.pdf
27 rm -f *.aux *.log *.dvi *.out *.pdf *.ps *~
29 # psnup -pa4 -2 <final.ps | ssh davenant cat junk/tumble.ps - \| lpr