texi2html doesn't support @verbatiminclude, so kluge it.
[pintos-anon] / doc / Makefile
1 TEXIS = pintos.texi intro.texi tour.texi threads.texi userprog.texi     \
2 vm.texi filesys.texi references.texi standards.texi doc.texi            \
3 sample.tmpl.texi devel.texi debug.texi 44bsd.texi
4
5 all: pintos.html pintos.info pintos.dvi pintos.ps pintos.pdf
6
7 pintos.html: $(TEXIS) texi2html
8         ./texi2html -toc_file=$@ -split=chapter -nosec_nav -nomenu -init_file pintos-t2h.init $<
9
10 pintos.info: $(TEXIS)
11         makeinfo $<
12
13 pintos.dvi: $(TEXIS)
14         texi2dvi $< -o $@
15
16 pintos.ps: pintos.dvi
17         dvips $< -o $@
18
19 pintos.pdf: $(TEXIS)
20         texi2pdf $< -o $@
21
22 %.texi: %
23         sed < $< > $@ 's/\([{}@]\)/\@\1/g;'
24
25 clean:
26         rm -f *.info *.html
27         rm -f *.dvi *.pdf *.ps *.log *~
28         rm -rf WWW
29
30 dist: pintos.html pintos.pdf
31         rm -rf WWW
32         mkdir WWW WWW/specs
33         cp *.html *.pdf *.css *.tmpl WWW
34         (cd ../specs && cp -r *.pdf freevga kbd sysv-abi-update.html ../doc/WWW/specs)