repositories
/
ai-gitflashtalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small update in makefile and content
[ai-gitflashtalk.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
98cf2f8
..
9ef0328
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,14
+1,25
@@
-SHELL:=/bin/bash
+TEX:=pdflatex
+
+.PHONY: clean clobber images
git.pdf: git.tex preamble.fmt
git.pdf: git.tex preamble.fmt
- pdflatex $<
- pdflatex $<
+ $(TEX) $<
+ grep -q "rerunfilecheck Warning:.*$(basename $<).out" $(basename $<).log &&\
+ $(TEX) $< || true
preamble.fmt: preamble.tex vc.tex
preamble.fmt: preamble.tex vc.tex
- pdflatex -ini -jobname="$(basename $<)" "&pdflatex $<\dump"
+ $(TEX) -ini -jobname="$(basename $@)" "&$(TEX) $<\dump"
+
+images:
+ wget -qO- http://www.androidworld.it/wp-content/uploads/2014/02/linus-torvalds-getty-final.jpg\
+ | convert -resize 10\% - - > 1.png
+ wget -qO2.png http://blog.osteele.com/images/2008/git-transport.png
vc.tex: .git/logs/HEAD
git log -1 --format="format:\\gdef\\GITAbrHash{%H}" > $@
clean:
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 $(addprefix *.,vrb eps aux fmt bbl blg dvi log out toc nav snm) vc.tex
+
+clobber: clean
+ $(RM) -v *.pdf $(addsuffix .png,1 2)