noarg: echo -e '\nThis script do not run without arguments. Run for example:\n\n make 2011-02-13-board-notes.pdf\n make all\n' # Normal minutes all: \ 2013-03-26-board.pdf \ 2013-03-12-board-notes.pdf \ 2013-02-12-board.pdf # Minutes with information from external sources completes: 2013-03-26-board-complete.pdf %.pdf: %.tex ../preamble/preamble.tex latex_count=5 ;\ latex_log=$$(echo $@ | sed 's/.pdf/.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; %-complete.tex: %.tex %.sed.gpg source=$$(echo $< | sed 's/.tex//') ; \ gpg --decrypt < $${source}.sed.gpg > $${source}.sed_ ; \ sed -f $${source}.sed_ < $< > $@ ;\ rm -f $${source}.sed_ # Sends to fripost.org for publication send: rsync -ruvp --chmod=Dugo+rx,Fugo+r *-board.pdf *-notes.pdf *-annual.pdf fripost@fripost.org:fripost.org/minutes/ # Clean up clean: rm -f *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~;\ rm -f *complete.tex