diff options
Diffstat (limited to 'flyers/event-info/Makefile')
-rw-r--r-- | flyers/event-info/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/flyers/event-info/Makefile b/flyers/event-info/Makefile new file mode 100644 index 0000000..037181e --- /dev/null +++ b/flyers/event-info/Makefile @@ -0,0 +1,43 @@ + +ALL = \ + event-info-single.pdf \ + event-info.pdf \ + +SEND_FILES = $(ALL) + +all: $(ALL) + +fripost-mayday-flyer.pdf: fripost-mayday-flyer-single.pdf + pdftk $< cat 1 1 output $@ + +event-info-single.pdf: master.tex flygblad-lagring-foer-delning-2018.pdf + jobname=$(basename $@) ;\ + log=$(addsuffix .log, $(basename $@)) ;\ + count=5 ;\ + pdflatex -jobname $$jobname $< ;\ + while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$log && [ $$count -gt 0 ] ;\ + do echo "Rerunning latex...." ; pdflatex -jobname $$jobname $< ;\ + count=`expr $$count - 1`;\ + done; + +# General cases + +%.pdf: %-single.pdf + pdftk $< cat 1 1 output $@ + +%.pdf: %.odt + libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $< + +%.png: %.pdf + convert $< $@ + +# Sends to fripost.org for publication + +send: + rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/material/ + @echo; echo Now avialable as; for f in $(SEND_FILES); do echo " - https://fripost.org/material/$$f"; done + +clean: + rm -fr $(ALL) + +SHELL = /bin/bash |