aboutsummaryrefslogtreecommitdiffstats
path: root/2013/Makefile
blob: 3df85b0e4aa711d420fe4af2bfc589b9bd3e0fbd (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
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'

minutes1 = 2013-02-12-board
all: $(minutes1).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;

# Sends to fripost.org for publication
send:
	rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/

# Clean up
clean:
	rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~; rm -f test test.d/test; rmdir test.d