f732437545a11bf60e2afff47ea2f716044d0823
[ctsim.git] / doc / Makefile
1 docs := ctsim.tex texhelp.sty psbox.tex logo.eps logo.gif ctsim-sgp.tex ctsim-concepts.tex ctsim-gui.tex ctsim-install.tex ctsim-textui.tex ctsim-web.tex alphacalc.eps alphacalc.gif divergent.eps divergent.gif equiangular.eps equiangular.gif equilinear.eps equilinear.gif scangeometry.eps scangeometry.gif tex2rtf.ini ctsim.hpj bullet.bmp verbatim.sty mytitle.sty makeidx.sty mysober.sty fancyhea.sty ctsim-latex.bib ctsim-tex2rtf.bib
2
3 pkg=ctsim
4
5 all: htmlhelp html pdf ps
6
7 CLEANFILES=$(pkg).ps $(pkg).hhc $(pkg).hhp $(pkg).hhk $(pkg).bib $(pkg).zip $(pkg).ilg $(pkg).ind $(pkg).dvi $(pkg).pdf $(pkg).htb $(pkg).bb $(pkg).blg $(pkg).idx $(pkg).toc $(pkg).bbl $(pkg).con $(pkg).ref $(pkg).blg
8
9 clean:
10         @rm -f $(CLEANFILES) $(pkg)*.html *.aux *.log *~ '#*~' '#*#' .*~
11         @rm -rf html
12
13 .PHONY: pdf
14 pdf: $(pkg).pdf
15 $(pkg).pdf: $(pkg).dvi
16         dvipdfm $(pkg)
17
18 .PHONY: ps
19 ps: $(pkg).ps
20 $(pkg).ps: $(pkg).pdf
21         pdftops $(pkg).pdf $(pkg).ps
22
23 .PHONY: dvi
24 dvi: $(pkg).dvi
25 $(pkg).dvi: $(docs)
26         cp $(pkg)-latex.bib $(pkg).bib
27         latex $(pkg)
28         bibtex $(pkg) > /dev/null
29         latex $(pkg)
30         makeindex $(pkg) > /dev/null
31         latex $(pkg)
32
33 .PHONY: htmlhelp
34 htmlhelp: $(docs)
35         rm -f $(pkg)*.html $(pkg).hhp $(pkg).hhc $(pkg).hhk $(pkg).zip
36         cp $(pkg)-tex2rtf.bib $(pkg).bib
37         tex2rtf $(pkg).tex $(pkg).html -html  > /dev/null
38         zip -q $(pkg).zip *.html *.gif $(pkg).hh[pck]
39         mv $(pkg).zip $(pkg).htb
40
41 html: htmlhelp
42         rm -rf html
43         mkdir html
44         cp *.gif html
45         mv *.html html
46
47
48 #.PHONY: winhelp
49 #winhelp: $(docs)
50 #       rm -f $(pkg).rtf $(pkg).cnt
51 #       cp $(pkg)-tex2rtf.bib $(pkg).bib
52 #       tex2rtf $(pkg).tex $(pkg).rtf -winhelp
53 #       hcw /c /m /e $(pkg).hpj
54 #       mv $(PKG).HLP $(pkg).hlp
55 #       cp $(pkg).hlp $(pkg).cnt ../msvc/$(pkg)/
56