Moved makeindex into .tex targets so it can be called *after* latex

This commit is contained in:
mainzelm 2003-04-25 15:51:19 +00:00
parent 4ea2cf14bb
commit 85893429b8
1 changed files with 5 additions and 7 deletions

View File

@ -1,28 +1,26 @@
.SUFFIXES: .idx .ind .tex .dvi .ps .pdf $(.SUFFIXES) .SUFFIXES: .tex .dvi .ps .pdf $(.SUFFIXES)
TEX= front.tex intro.tex procnotation.tex syscalls.tex network.tex \ TEX= front.tex intro.tex procnotation.tex syscalls.tex network.tex \
strings.tex awk.tex miscprocs.tex running.tex strings.tex awk.tex miscprocs.tex running.tex
TEX2PAGE=tex2page TEX2PAGE=tex2page
man.dvi: $(TEX) man.ind man.dvi: $(TEX)
man.ind: man.idx man.pdf: $(TEX)
man.pdf: $(TEX) man.ind
.dvi.ps: .dvi.ps:
dvips -j0 -o $@ $< dvips -j0 -o $@ $<
.tex.dvi: .tex.dvi:
latex $< && latex $< latex $< && latex $<
makeindex $(<:.tex=.idx)
rm $*.log rm $*.log
.tex.pdf: .tex.pdf:
pdflatex $< && thumbpdf $@ && pdflatex $< pdflatex $< && thumbpdf $@ && pdflatex $<
makeindex $(<:.tex=.idx)
rm $*.log rm $*.log
.idx.ind:
makeindex $<
clean: clean:
-rm -f *.log *.png man.out man.dvi man.ps man.pdf thumb*.png -rm -f *.log *.png man.out man.dvi man.ps man.pdf thumb*.png
rm -rf html rm -rf html