1 PSFILES
=ip-cref.ps ip-tunnels.ps api-ip6-flowlabels.ps ss.ps nstat.ps arpd.ps rtstat.ps
3 # api-rtnl.tex api-pmtudisc.tex api-news.tex
4 # iki-netdev.ps iki-neighdst.ps
9 SGML2DVI
=sgml2latex
--output
=dvi
10 SGML2HTML
=sgml2html
-s
0
16 HTMLFILES
=$(subst .sgml
,.html
,$(shell echo
*.sgml
))
17 DVIFILES
=$(subst .ps
,.
dvi,$(PSFILES
))
35 @set
-e
; pass
=2; echo
"Running LaTeX $<"; \
36 while
[ `$(LATEX) $< </dev/null 2>&1 | \
37 grep -c '^\(LaTeX Warning: Label(s) may\|No file \|! Emergency stop\)'` -ge
1 ]; do \
38 if
[ $$pass -gt
3 ]; then \
39 echo
"Seems, something is wrong. Try by hands." ; exit
1 ; \
41 echo
"Re-running LaTeX $<, $${pass}d pass"; pass
=$$[$$pass + 1]; \
46 .
/do-psnup
$@.tmp
$@
$(PAGESIZE
) $(PAGESPERPAGE
)
53 install -m
0644 $(shell echo
*.
tex) $(DESTDIR
)$(DOCDIR
)
54 install -m
0644 $(shell echo
*.sgml
) $(DESTDIR
)$(DOCDIR
)
57 rm -f
*.aux
*.log
*.toc
$(PSFILES
) $(DVIFILES
) *.html