Make tests public. Rewrite most tests. Add tests.
[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 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 %.eps: %.jgr
23         (jgraph $< > $@.tmp && mv $@.tmp $@) || touch $@
24
25 %.png: %.eps
26         convert $< $@
27
28 %.pdf: %.eps
29         epstopdf $< --outfile=$@
30
31 clean:
32         rm -f *.info *.html *.png
33         rm -f *.dvi *.pdf *.ps *.log *~
34         rm -rf WWW
35
36 dist: pintos.html pintos.pdf
37         rm -rf WWW
38         mkdir WWW WWW/specs
39         cp *.html *.png *.pdf *.css WWW
40         (cd ../specs && cp -r *.pdf freevga kbd sysv-abi-update.html ../doc/WWW/specs)