summaryrefslogtreecommitdiffstats
path: root/2013/mayday/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2013-04-28 17:48:25 +0200
committerGustav Eek <gustav.eek@proceranetworks.com>2013-04-28 23:17:40 +0200
commit9f4f29bcc60ba90f421d254ef8ac8776d5b15dbf (patch)
tree22fdcac0e0851179884e3e263353d668731de7f7 /2013/mayday/Makefile
parent63d40dc133fc84ac0b0e827bc0eff8bbc5e3f055 (diff)
Flyer created for May Day 2013
LaTex is used. The text is basically taken from the may day last year ... as well as the logo.
Diffstat (limited to '2013/mayday/Makefile')
-rw-r--r--2013/mayday/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/2013/mayday/Makefile b/2013/mayday/Makefile
new file mode 100644
index 0000000..7a74887
--- /dev/null
+++ b/2013/mayday/Makefile
@@ -0,0 +1,13 @@
+SHELL=/bin/bash
+
+flyer-1-may-2013.pdf: master.tex preamble.tex frontside.tex backside.tex
+ latex_count=5 ;\
+ latex_log=$$(echo $< | sed 's/.tex/.log/') ;\
+ pdflatex $< ;\
+ while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$latex_log && [ $$latex_count -gt 0 ] ;\
+ do echo "Rerunning latex...." ; pdflatex $< ;\
+ latex_count=`expr $$latex_count - 1`;\
+ done;
+ mv -v $$(echo $< | sed 's/.tex/.pdf/') $@
+
+