r1878: *** empty log message ***
[ctsim.git] / doc / Makefile.am
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 EXTRA_DIST = $(docs) html
6
7 CLEANFILES=$(pkg).ps $(pkg)*.html $(pkg).hhc $(pkg).hhp $(pkg).hhk \
8          $(pkg).bib $(pkg).zip *.aux *.log *~ \#*~ \#*\# \.*~ 
9
10 all-local: htmlhelp html dvi 
11
12 install-data-hook: $(pkg).htb
13         cp $(pkg).htb $(datadir)
14
15 .PHONY: ps
16 ps: ctsim.ps
17 $(pkg).ps: $(pkg).dvi
18         dvips $(pkg)
19
20 .PHONY: dvi
21 dvi: $(pkg).dvi
22 $(pkg).dvi: $(docs)
23         cp $(pkg)-latex.bib $(pkg).bib
24         latex $(pkg) > /dev/null
25         bibtex $(pkg) > /dev/null
26         latex $(pkg) > /dev/null
27         makeindex $(pkg) > /dev/null
28         latex $(pkg) > /dev/null
29
30 .PHONY: winhelp
31 winhelp: $(docs)
32         rm -f $(pkg).rtf $(pkg).cnt
33         cp $(pkg)-tex2rtf.bib $(pkg).bib
34         tex2rtf $(pkg).tex $(pkg).rtf -winhelp
35         hcw /c /m /e $(pkg).hpj
36         mv $(PKG).HLP $(pkg).hlp
37         cp $(pkg).hlp $(pkg).cnt ../msvc/$(pkg)/
38
39 .PHONY: htmlhelp
40 htmlhelp: $(docs)
41         rm -f $(pkg)*.html $(pkg).hhp $(pkg).hhc $(pkg).hhk $(pkg).zip
42         cp $(pkg)-tex2rtf.bib $(pkg).bib
43         tex2rtf $(pkg).tex $(pkg).html -html  > /dev/null
44         zip $(pkg).zip *.html *.gif $(pkg).hh[pck]
45         mv $(pkg).zip $(pkg).htb
46
47 html: $(docs)
48         rm -f $(pkg)*.html $(pkg).hh[cpk] $(pkg).zip
49         cp $(pkg)-tex2rtf.bib $(pkg).bib
50         tex2rtf $(pkg).tex $(pkg).html -html  > /dev/null
51         rm -rf html
52         mkdir html
53         ln -s $(pkg)_contents.html html/index.html
54
55