aboutsummaryrefslogtreecommitdiffstats
path: root/agenda/Makefile
blob: b22d8aa6ee9c15c8d88f23a788a13750dced2577 (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
31
32
33
# 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'

bma = board-meeting-agenda
yma = yearly-meeting-agenda

all: $(bma).pdf $(yma).pdf

%.pdf: %.tex ../preamble/preamble.tex
	pdflatex $<
	latex_count=5 ; \
	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
	rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/

# Debuging and testing
send-test: test.d/test
	umask 022
	rsync -ruvp --chmod=Dugo+rx,Fugo+r 	rsync -ruvp test.d/ fripost@fripost.org:fripost.org/minutes/
test.d/test: test.d
	echo This is the test file for fripost-web. > test.d/test
test.d:
	mkdir test.d

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