NBash
23 строки · 544.0 Байт
1LATEX_CMD=pdflatex
2
3all: refman.pdf
4
5pdf: refman.pdf
6
7refman.pdf: clean refman.tex
8$(LATEX_CMD) refman
9makeindex refman.idx
10$(LATEX_CMD) refman
11latex_count=8 ; \
12while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
13do \
14echo "Rerunning latex...." ;\
15$(LATEX_CMD) refman ;\
16latex_count=`expr $$latex_count - 1` ;\
17done
18makeindex refman.idx
19$(LATEX_CMD) refman
20
21
22clean:
23rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
24