aboutsummaryrefslogtreecommitdiffstats
path: root/by-laws/Makefile
blob: 0dbca765c0f5fc5e25d3b3684565985b827b2c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Makefile for minutes with usual treatments, that is noting extra then just compilation.
#
# Gustav Eek 2011

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'

bylaws2 = by-laws-2012
bylaws1 = by-laws-2010

all: $(bylaws2).pdf $(bylaws1).pdf

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

send: $(bylaws2).pdf
        rsync -ruvp --chmod=Dugo+rx,Fugo+r $^ fripost@fripost.org:fripost.org/minutes/

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