repositories
/
ai-gitflashtalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean makefile and better shellcode
[ai-gitflashtalk.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
bd86817
..
fcf83c7
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,27
+1,25
@@
-SHELL:=/bin/bash
TEX:=pdflatex
TEX:=pdflatex
-.PHONY: clean clobber
+.PHONY: clean clobber
images
-git.pdf: git.tex preamble.fmt 1.png 2.png
- $(TEX) $<
+git.pdf: git.tex preamble.fmt images
$(TEX) $<
$(TEX) $<
+ grep -q "rerunfilecheck Warning:.*$(basename $<).out" $(basename $<).log &&\
+ $(TEX) $<
preamble.fmt: preamble.tex vc.tex
preamble.fmt: preamble.tex vc.tex
- $(TEX) -ini -jobname="$(basename $
<
)" "&$(TEX) $<\dump"
+ $(TEX) -ini -jobname="$(basename $
@
)" "&$(TEX) $<\dump"
-
1.png
:
+
images
:
wget -qO- http://www.androidworld.it/wp-content/uploads/2014/02/linus-torvalds-getty-final.jpg\
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
+ | 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
*.{vrb,eps,aux,fmt,bbl,blg,dvi,log,out,toc,nav,snm}
vc.tex
+ $(RM) -v
$(addprefix *.,vrb eps aux fmt bbl blg dvi log out toc nav snm)
vc.tex
clobber: clean
clobber: clean
- $(RM) -v *.
{png,pdf}
+ $(RM) -v *.
pdf 1.png