aboutsummaryrefslogtreecommitdiffstats
path: root/agenda/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'agenda/Makefile')
-rw-r--r--agenda/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/agenda/Makefile b/agenda/Makefile
index a518a72..fa862b5 100644
--- a/agenda/Makefile
+++ b/agenda/Makefile
@@ -2,16 +2,16 @@
#
# Gustav Eek 2011
-all: \
-board-meeting-agenda.pdf \
-yearly-meeting-agenda.pdf \
+bma = board-meeting-agenda
+yma = yearly-meeting-agenda
+
+all: $(bma).pdf $(yma).pdf
%.pdf: %.tex ../preamble/preamble.tex
+ pdflatex $<
latex_count=5 ; \
- jobname=$(basename $@) ;\
- pdflatex -jobname="$$jobname" $< ;\
- while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$jobname.log && [ $$latex_count -gt 0 ] ;\
- do echo "Rerunning latex...." ; pdflatex $<; latex_count=`expr $$latex_count - 1`; done
+ 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 ;\