SHELL:=/bin/bash all: vc.tex git.pdf git.pdf: git.tex vc.tex pdflatex $< pdflatex $< vc.tex: .git/logs/HEAD git log -1 --format="format:\\gdef\\GITAbrHash{%H}" > vc.tex clean: $(RM) -v git.{eps,aux,bbl,blg,dvi,log,out,toc,nav,snm,pdf} vc.tex