diff options
Diffstat (limited to 'agenda/Makefile')
| -rw-r--r-- | agenda/Makefile | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/agenda/Makefile b/agenda/Makefile index 5cbaf8b..b22d8aa 100644 --- a/agenda/Makefile +++ b/agenda/Makefile @@ -6,14 +6,15 @@ 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'  bma = board-meeting-agenda +yma = yearly-meeting-agenda -all: $(bma).pdf +all: $(bma).pdf $(yma).pdf -$(bma).pdf: $(bma).tex ../preamble/preamble.tex -	pdflatex $(bma).tex +%.pdf: %.tex ../preamble/preamble.tex +	pdflatex $<  	latex_count=5 ; \ -	while egrep -s 'Rerun (LaTeX|to get cross-references right)' $(bma).log && [ $$latex_count -gt 0 ] ;\ -	   do echo "Rerunning latex...." ;  pdflatex $(bma).tex;  latex_count=`expr $$latex_count - 1`; done +	while egrep -s 'Rerun (LaTeX|to get cross-references right)' $(basename $@).log && [ $$latex_count -gt 0 ] ;\ +	   do echo "Rerunning latex...." ;  pdflatex $(basename $<).tex;  latex_count=`expr $$latex_count - 1`; done  send: # sends to fripost.org for publication  	umask 022  | 
