mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2024-12-25 07:04:38 +03:00
24 lines
544 B
Makefile
24 lines
544 B
Makefile
|
LATEX_CMD=pdflatex
|
||
|
|
||
|
all: refman.pdf
|
||
|
|
||
|
pdf: refman.pdf
|
||
|
|
||
|
refman.pdf: clean refman.tex
|
||
|
$(LATEX_CMD) refman
|
||
|
makeindex refman.idx
|
||
|
$(LATEX_CMD) refman
|
||
|
latex_count=8 ; \
|
||
|
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
|
||
|
do \
|
||
|
echo "Rerunning latex...." ;\
|
||
|
$(LATEX_CMD) refman ;\
|
||
|
latex_count=`expr $$latex_count - 1` ;\
|
||
|
done
|
||
|
makeindex refman.idx
|
||
|
$(LATEX_CMD) refman
|
||
|
|
||
|
|
||
|
clean:
|
||
|
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
|