diff options
author | Gustav Eek <gustav@fripost.org> | 2015-10-12 20:10:32 +0200 |
---|---|---|
committer | Gustav Eek <gustav@fripost.org> | 2015-10-12 20:10:32 +0200 |
commit | 1e48b4bf03f047a497988954241666cc6ec65215 (patch) | |
tree | be70fe7663740faff4ab85ebeca5d1bca4ec536d /flyers/mayday/Makefile | |
parent | efbadc9d39e030e30783f55f61f8f49475382c7f (diff) |
[flyers] Flyer moved to a new folder -- better structure
Diffstat (limited to 'flyers/mayday/Makefile')
-rw-r--r-- | flyers/mayday/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/flyers/mayday/Makefile b/flyers/mayday/Makefile new file mode 100644 index 0000000..7a74887 --- /dev/null +++ b/flyers/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/') $@ + + |