4b25a2742457c53ba051f4fe5b9baf90097c0197
[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 CLEANFILES=$(pkg).ps $(pkg).hhc $(pkg).hhp $(pkg).hhk $(pkg).bib $(pkg).zip $(pkg).ilg $(pkg).ind $(pkg).dvi $(pkg).pdf $(pkg).htb
6
7
8 clean:
9         rm -f $(CLEANFILES)
10         rm -f $(pkg)*.html 
11         rm -f *.aux
12         rm -f *.log 
13         rm -f *~ 
14         rm -f '#*~' 
15         rm -f '#*#'
16         rm -f .*~
17         rm -rf htm
18
19 all: htmlhelp html pdf ps
20
21 .PHONY: pdf
22 pdf: $(pkg).pdf
23 $(pkg).pdf: $(pkg).dvi
24         dvipdfm $(pkg)
25
26 .PHONY: ps
27 ps: $(pkg).ps
28 $(pkg).ps: $(pkg).pdf
29         pdftops $(pkg).pdf $(pkg).ps
30
31 .PHONY: dvi
32 dvi: $(pkg).dvi
33 $(pkg).dvi: $(docs)
34         cp $(pkg)-latex.bib $(pkg).bib
35         latex $(pkg)
36         bibtex $(pkg) > /dev/null
37         latex $(pkg)
38         makeindex $(pkg) > /dev/null
39         latex $(pkg)
40
41 .PHONY: htmlhelp
42 htmlhelp: $(docs)
43         rm -f $(pkg)*.html $(pkg).hhp $(pkg).hhc $(pkg).hhk $(pkg).zip
44         cp $(pkg)-tex2rtf.bib $(pkg).bib
45         tex2rtf $(pkg).tex $(pkg).html -html  > /dev/null
46         zip -q $(pkg).zip *.html *.gif $(pkg).hh[pck]
47         mv $(pkg).zip $(pkg).htb
48
49 html: htmlhelp
50         rm -rf html
51         mkdir html
52         cp *.gif html
53         mv *.html html
54
55
56 #.PHONY: winhelp
57 #winhelp: $(docs)
58 #       rm -f $(pkg).rtf $(pkg).cnt
59 #       cp $(pkg)-tex2rtf.bib $(pkg).bib
60 #       tex2rtf $(pkg).tex $(pkg).rtf -winhelp
61 #       hcw /c /m /e $(pkg).hpj
62 #       mv $(PKG).HLP $(pkg).hlp
63 #       cp $(pkg).hlp $(pkg).cnt ../msvc/$(pkg)/
64