Use macros for 8259A PIC registers, instead of writing them literally.
[pintos-anon] / doc / Makefile
1 TEXIS = pintos.texi intro.texi threads.texi userprog.texi vm.texi       \
2 filesys.texi license.texi reference.texi 44bsd.texi standards.texi      \
3 doc.texi sample.tmpl.texi devel.texi debug.texi installation.texi       \
4 bibliography.texi localsettings.texi
5
6 all: pintos.html pintos.info pintos.dvi pintos.ps pintos.pdf
7
8 pintos.html: $(TEXIS) texi2html
9         ./texi2html -toc_file=$@ -split=chapter -nosec_nav -nomenu -init_file pintos-t2h.init $<
10
11 pintos.info: $(TEXIS)
12         makeinfo $<
13
14 pintos.text: $(TEXIS)
15         makeinfo --plaintext -o $@ $<
16
17 pintos.dvi: $(TEXIS)
18         texi2dvi $< -o $@
19
20 pintos.ps: pintos.dvi
21         dvips $< -o $@
22
23 pintos.pdf: $(TEXIS)
24         texi2pdf $< -o $@
25
26 %.texi: %
27         sed < $< > $@ 's/\([{}@]\)/\@\1/g;'
28
29 clean:
30         rm -f *.info* *.html
31         rm -f *.dvi *.pdf *.ps *.log *~
32         rm -rf WWW
33         rm -f sample.tmpl.texi
34
35 dist: pintos.html pintos.pdf
36         rm -rf WWW
37         mkdir WWW WWW/specs
38         cp *.html *.pdf *.css *.tmpl WWW
39         (cd ../specs && cp -r *.pdf freevga kbd sysv-abi-update.html ../doc/WWW/specs)