Updated basic section
[ai-gitflashtalk.git] / Makefile
index 98cf2f8..bd86817 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,27 @@
 SHELL:=/bin/bash
+TEX:=pdflatex
 
-git.pdf: git.tex preamble.fmt
-       pdflatex $< 
-       pdflatex $< 
+.PHONY: clean clobber
+
+git.pdf: git.tex preamble.fmt 1.png 2.png
+       $(TEX) $< 
+       $(TEX) $< 
 
 preamble.fmt: preamble.tex vc.tex
-       pdflatex -ini -jobname="$(basename $<)" "&pdflatex $<\dump"
+       $(TEX) -ini -jobname="$(basename $<)" "&$(TEX) $<\dump"
+
+1.png:
+       wget -qO- http://www.androidworld.it/wp-content/uploads/2014/02/linus-torvalds-getty-final.jpg\
+               | convert -resize 10\% - $@
+
+2.png:
+       wget -qO$@ http://blog.osteele.com/images/2008/git-transport.png
 
 vc.tex: .git/logs/HEAD
        git log -1 --format="format:\\gdef\\GITAbrHash{%H}" > $@
 
 clean:
-       $(RM) -v *.{eps,aux,fmt,bbl,blg,dvi,log,out,toc,nav,snm,pdf} vc.tex
+       $(RM) -v *.{vrb,eps,aux,fmt,bbl,blg,dvi,log,out,toc,nav,snm} vc.tex
+
+clobber: clean
+       $(RM) -v *.{png,pdf}