aboutsummaryrefslogtreecommitdiffstats
path: root/by-laws/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'by-laws/Makefile')
-rw-r--r--by-laws/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/by-laws/Makefile b/by-laws/Makefile
new file mode 100644
index 0000000..af01b77
--- /dev/null
+++ b/by-laws/Makefile
@@ -0,0 +1,27 @@
+# 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 $@
+
+clean:
+ rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~