texi2html doesn't support @verbatiminclude, so kluge it.
[pintos-anon] / doc / Makefile
index 63f5247ca047795ac80e2c573fd9a8ef8e256be2..e06d52832b5598e5ae364d048b574513c2eba640 100644 (file)
@@ -1,6 +1,6 @@
 TEXIS = pintos.texi intro.texi tour.texi threads.texi userprog.texi    \
 vm.texi filesys.texi references.texi standards.texi doc.texi           \
-sample.tmpl devel.texi debug.texi 44bsd.texi
+sample.tmpl.texi devel.texi debug.texi 44bsd.texi
 
 all: pintos.html pintos.info pintos.dvi pintos.ps pintos.pdf
 
@@ -19,6 +19,9 @@ pintos.ps: pintos.dvi
 pintos.pdf: $(TEXIS)
        texi2pdf $< -o $@
 
+%.texi: %
+       sed < $< > $@ 's/\([{}@]\)/\@\1/g;'
+
 clean:
        rm -f *.info *.html
        rm -f *.dvi *.pdf *.ps *.log *~
@@ -27,5 +30,5 @@ clean:
 dist: pintos.html pintos.pdf
        rm -rf WWW
        mkdir WWW WWW/specs
-       cp *.html *.pdf *.css WWW
+       cp *.html *.pdf *.css *.tmpl WWW
        (cd ../specs && cp -r *.pdf freevga kbd sysv-abi-update.html ../doc/WWW/specs)