3 FILE_BASE=$(TEX_BASE:.tex=)
5 BMP_FILES=$(XPM_FILES:.xpm=.bmp)
6 EPS_FILES=$(XPM_FILES:.xpm=.eps)
7 GIF_FILES=$(XPM_FILES:.xpm=.gif)
9 TEX2RTF=$(WXBASEDIR)/bin/$(OSTYPE)/tex2rtf
11 HTML_BUTTONS=back.gif forward.gif contents.gif up.gif
16 @ for each in $(DIRS) . ; do \
18 rm -f *.bmp *.eps *.gif *.aux *.dvi *.log \
19 *.ps *.toc *~ *.idx *.hlp *.html \
20 *.rtf *.ref *.xlp *.con *.win *.fts \
24 doc:: doc_ps doc_html doc_xlp doc_winhelp doc_rtf
26 #############################################
28 doc_ps:: $(FILE_BASE).ps
30 $(FILE_BASE).ps: $(FILE_BASE).dvi
31 dvips $(FILE_BASE).dvi -o$@
33 #############################################
35 doc_dvi:: $(FILE_BASE).dvi
37 $(FILE_BASE).dvi: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(EPS_FILES)
38 latex $(FILE_BASE).tex
39 latex $(FILE_BASE).tex
41 #############################################
43 doc_xlp:: $(FILE_BASE).xlp
45 $(FILE_BASE).xlp: $(FILE_BASE).tex $(TEX_ADDITIONAL)
46 $(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE).xlp -twice -xlp
48 #############################################
50 doc_html:: $(FILE_BASE)_contents.html $(FILE_BASE).html
53 @ln -s $(FILE_BASE)_contents.html $@
55 $(FILE_BASE)_contents.html: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(GIF_FILES) $(HTML_BUTTONS)
56 $(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE) -twice -html
58 #############################################
60 doc_rtf:: $(FILE_BASE).rtf
62 $(FILE_BASE).rtf: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
63 $(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE).rtf -twice -rtf
65 #############################################
67 doc_winhelp:: $(FILE_BASE).win
69 $(FILE_BASE).win: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
70 ../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).win -twice -winhelp
71 @echo final conversion still needs to be done by MSWin
73 #############################################
82 xpmtoppm $< | ppmtogif | giftopnm | pnmtops -rle -center -noturn -scale 0.5 - > $@
86 xpmtoppm $< | ppmtobmp -windows - > $@
90 xpmtoppm $< | ppmtogif -interlace - > $@