diff options
Diffstat (limited to 'agenda/Makefile')
-rw-r--r-- | agenda/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/agenda/Makefile b/agenda/Makefile new file mode 100644 index 0000000..5cbaf8b --- /dev/null +++ b/agenda/Makefile @@ -0,0 +1,32 @@ +# 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 + +all: $(bma).pdf + +$(bma).pdf: $(bma).tex ../preamble/preamble.tex + pdflatex $(bma).tex + 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 + +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 *~ |