aboutsummaryrefslogtreecommitdiffstats
path: root/by-laws/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:28:25 +0200
committerGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:28:25 +0200
commit333ce0e77e9ed4471070b2cbc856edc29cd800ca (patch)
treec7b6fcb1da08ea68d3f47f74dcb09fc0641410d0 /by-laws/Makefile
parentcf84992f282bd9a1cbac21e525175e466328056f (diff)
parent07d3de541c5eb163bdb563f0fb4489d92d53f899 (diff)
Merge branch 'ge-annual'
Conflicts: 2013/Makefile
Diffstat (limited to 'by-laws/Makefile')
-rw-r--r--by-laws/Makefile29
1 files changed, 13 insertions, 16 deletions
diff --git a/by-laws/Makefile b/by-laws/Makefile
index dbf6096..e17d0dd 100644
--- a/by-laws/Makefile
+++ b/by-laws/Makefile
@@ -5,23 +5,20 @@
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: \
+by-laws-2013.pdf \
+by-laws-2012.pdf \
+by-laws-2010.pdf
-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 $@
+%.pdf: %.main.tex %.tex ../preamble/preamble.tex
+ latex_count=5 ;\
+ latex_log=$$(echo $< | sed 's/.tex/.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 ;\
+ mv $$(echo $< | sed 's/.tex/.pdf/') $@
send:
rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/