1# 2# Makefile for Tachyon documentation 3# 4 5LATEX=latex 6DVIPS=dvips 7LATEX2HTML=latex2html 8PDFLATEX=pdflatex 9DISTILLER=distiller 10MAKEINDEX=makeindex 11 12default: 13 @echo "Select documentation to build:" 14 @echo "------------------------------" 15 @echo " all - All supported file formats" 16 @echo "html - HTML" 17 @echo " ps - Adobe PostScript" 18 @echo " pdf - Adobe PDF " 19 20all: tachyon.html tachyon.ps tachyon.pdf 21 22ps: tachyon.ps 23 24pdf: tachyon.pdf 25 26html: tachyon.html 27 28tachyon.html : 29 rm -rf ./tachyon 30 $(LATEX2HTML) \ 31 -local_icons \ 32 -split 5 \ 33 -toc_depth 4 \ 34 -toc_stars \ 35 -t "Tachyon Docs" \ 36 -address "john.stone@gmail.com" \ 37 -up_url "http://www.photonlimited.com/" \ 38 -up_title "photonlimited.com, home of Tachyon" \ 39 tachyon 40 41# tar -cvf - tachyon | gzip > tachyon.html.tar.gz 42# rm -rf ./tachyon 43 44 45tachyon.ps : tachyon.dvi 46 $(DVIPS) tachyon.dvi -o tachyon.ps 47 48tachyon.dvi : 49 $(LATEX) tachyon 50 $(MAKEINDEX) tachyon 51 $(LATEX) tachyon 52 $(MAKEINDEX) tachyon 53 $(LATEX) tachyon 54 $(MAKEINDEX) tachyon 55 $(LATEX) tachyon 56 57tachyon.pdf : 58 $(PDFLATEX) tachyon 59 $(MAKEINDEX) tachyon 60 $(PDFLATEX) tachyon 61 $(MAKEINDEX) tachyon 62 $(PDFLATEX) tachyon 63 $(MAKEINDEX) tachyon 64 $(PDFLATEX) tachyon 65 66clean : 67 rm -f *.aux *.dvi *.idx *.lof *.log *.lot *.pdf *.ps *.toc *.ilg *.ind 68 69 70 71