X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2FMakefile;h=9e918bb93842d827108f101c2acbed56f07382e1;hb=365877dfb6d7438056b1a87cedb059e2c28e00d8;hp=138cf35bccfb8e4f4e66c83bc9a0d555160b2ef0;hpb=28034190e6ffa80204e6ab29b2968d8c5ba178b9;p=pintos-anon diff --git a/doc/Makefile b/doc/Makefile index 138cf35..9e918bb 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,7 +1,40 @@ -TEXIS = projects.texi threads.texi userprog.texi filesys.texi vm.texi +TEXIS = pintos.texi intro.texi tour.texi threads.texi mlfqs.texi \ +userprog.texi vm.texi filesys.texi references.texi standards.texi \ +doc.texi devel.texi debug.texi -projects.info: $(TEXIS) +all: pintos.html pintos.info pintos.dvi pintos.ps pintos.pdf + +pintos.html: $(TEXIS) mlfqs1.png mlfqs2.png + ./texi2html -toc_file=$@ -split=chapter -nosec_nav -nomenu -init_file pintos-t2h.init -nonumber $< + +pintos.info: $(TEXIS) makeinfo $< -projects.html: $(TEXIS) - texi2html -toc_file=$@ -split=chapter -no-sec_nav -no-menu $< +pintos.dvi: $(TEXIS) mlfqs1.eps mlfqs2.eps + texi2dvi $< -o $@ + +pintos.ps: pintos.dvi + dvips $< -o $@ + +pintos.pdf: $(TEXIS) mlfqs1.pdf mlfqs2.pdf + texi2pdf $< -o $@ + +%.eps: %.jgr + (jgraph $< > $@.tmp && mv $@.tmp $@) || touch $@ + +%.png: %.eps + convert $< $@ + +%.pdf: %.eps + epstopdf $< --outfile=$@ + +clean: + rm -f *.info *.html *.png + rm -f *.dvi *.pdf *.ps *.log + rm -rf WWW + +dist: pintos.html pintos.pdf + rm -rf WWW + mkdir WWW WWW/specs + cp *.html *.png *.pdf *.css WWW + (cd ../specs && cp -r *.pdf freevga kbd sysv-abi-update.html ../doc/WWW/specs)