2018-06-06 11:42:26 -05:00
|
|
|
all: refman.pdf
|
|
|
|
|
|
|
|
pdf: refman.pdf
|
|
|
|
|
|
|
|
refman.pdf: clean refman.tex
|
|
|
|
pdflatex refman
|
|
|
|
makeindex refman.idx
|
|
|
|
pdflatex refman
|
2018-08-19 06:27:09 -05:00
|
|
|
latex_count=5 ; \
|
2018-06-06 11:42:26 -05:00
|
|
|
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
|
|
|
|
do \
|
|
|
|
echo "Rerunning latex...." ;\
|
|
|
|
pdflatex refman ;\
|
|
|
|
latex_count=`expr $$latex_count - 1` ;\
|
|
|
|
done
|
|
|
|
makeindex refman.idx
|
|
|
|
pdflatex refman
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
|