aboutsummaryrefslogtreecommitdiffstats
path: root/agenda/Makefile
blob: f84ffb6f29f2313a18d8e355d574c305b60ef84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Makefile for minutes with usual treatments, that is noting extra then just compilation.
#
# Gustav Eek 2011

common-makefile = ../resources/Makefile-common

all: \
board-meeting-agenda.pdf \
yearly-meeting-agenda.pdf \

%.pdf: %.tex ../preamble/preamble.tex
	latex_count=5 ; \
	jobname=$(basename $@) ;\
	pdflatex -jobname="$$jobname" $< ;\
	while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$jobname.log && [ $$latex_count -gt 0 ] ;\
	   do echo "Rerunning latex...." ;  pdflatex $<;  latex_count=`expr $$latex_count - 1`; done

send: # sends to fripost.org for publication
	make -f $(common-makefile) send SEND_FILES="$(all)"

clean:
	rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~