A compass, map, and course loggbook is added
[agdavaarregn.git] / lathund / Makefile
blob00de8c9117bba38d25b780e452f8b33913e3050b
1 SHELL=/bin/bash
3 lathund.pdf: lathund.tex ../preamble/preamble.tex input/course_reckoner.tex input/compass.pdftex input/orientation_map.pdftex
4 pdflatex lathund.tex
5 latex_count=5 ; \
6 while egrep -s 'Rerun (LaTeX|to get cross-references right)' lathund.log && [ $$latex_count -gt 0 ] ;\
7 do echo "Rerunning latex...." ; pdflatex lathund.tex; latex_count=`expr $$latex_count - 1`; done
9 input/course_reckoner.tex: m/course_reckoner.m input
10 cd m; octave --silent --eval "course_reckoner ();" > ../input/course_reckoner.tex; cd -;
12 input/compass.pdftex: fig/compass.fig
13 fig2dev -L pdftex fig/compass.fig > input/compass.pdf
14 fig2dev -L pdftex_t -F -p input/compass.pdf fig/compass.fig > input/compass.pdftex
15 input/orientation_map.pdftex: fig/orientation-map.fig
16 fig2dev -L pdftex fig/orientation-map.fig > input/orientation_map.pdf
17 fig2dev -L pdftex_t -F -p input/orientation_map.pdf fig/orientation-map.fig > input/orientation_map.pdftex
19 input:
20 mkdir input
22 clean:
23 rm -fr input;
24 rm -f *.{log,aux,dvi,log,out,pdf}
25 rm -f *~