X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile;h=ed8bb234bfa95d51333abe10d515facc47b588b0;hb=ed04361f6ec91e4f0db1550c2cc487a461b2d17b;hp=88c9e85afd20fc1eebe439cf9762cdc978ce1177;hpb=699944803572c46c550a39027c0ebd935b0d61bc;p=pintos-anon diff --git a/doc/Makefile b/doc/Makefile index 88c9e85..ed8bb23 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,19 +1,39 @@ -TEXIS = projects.texi intro.texi threads.texi mlfqs.texi userprog.texi \ -filesys.texi vm.texi standards.texi doc.texi devel.texi debug.texi +TEXIS = pintos.texi intro.texi threads.texi userprog.texi vm.texi \ +filesys.texi license.texi reference.texi 44bsd.texi standards.texi \ +doc.texi sample.tmpl.texi devel.texi debug.texi installation.texi \ +bibliography.texi localsettings.texi -all: projects.html projects.info +all: pintos.html pintos.info pintos.dvi pintos.ps pintos.pdf -projects.html: $(TEXIS) mlfqs1.png mlfqs2.png - texi2html -toc_file=$@ -split=chapter -no-sec_nav -no-menu $< +pintos.html: $(TEXIS) texi2html + ./texi2html -toc_file=$@ -split=chapter -nosec_nav -nomenu -init_file pintos-t2h.init $< -projects.info: $(TEXIS) +pintos.info: $(TEXIS) makeinfo $< -%.eps: %.jgr - jgraph $< > $@.tmp && mv $@.tmp $@ +pintos.text: $(TEXIS) + makeinfo --plaintext -o $@ $< -%.png: %.eps - convert $< $@ +pintos.dvi: $(TEXIS) + texi2dvi $< -o $@ + +pintos.ps: pintos.dvi + dvips $< -o $@ + +pintos.pdf: $(TEXIS) + texi2pdf $< -o $@ + +%.texi: % + sed < $< > $@ 's/\([{}@]\)/\@\1/g;' clean: - rm -f *.info *.html *.eps *.png + rm -f *.info* *.html + rm -f *.dvi *.pdf *.ps *.log *~ + rm -rf WWW + rm -f sample.tmpl.texi + +dist: pintos.html pintos.pdf + rm -rf WWW + mkdir WWW WWW/specs + cp *.html *.pdf *.css *.tmpl WWW + (cd ../specs && cp -r *.pdf freevga kbd sysv-abi-update.html ../doc/WWW/specs)