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 HTML_BUTTONS=back.gif forward.gif contents.gif up.gif
14 @ for each in $(DIRS) . ; do \
16 rm -f *.bmp *.eps *.gif *.aux *.dvi *.log \
17 *.ps *.toc *~ *.idx *.hlp *.html \
18 *.rtf *.ref *.xlp *.con *.win *.fts \
22 doc:: doc_ps doc_html doc_xlp doc_winhelp doc_rtf
24 #############################################
26 doc_ps:: $(FILE_BASE).ps
28 $(FILE_BASE).ps: $(FILE_BASE).dvi
29 dvips $(FILE_BASE).dvi -o$@
31 #############################################
33 doc_dvi:: $(FILE_BASE).dvi
35 $(FILE_BASE).dvi: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(EPS_FILES)
36 latex $(FILE_BASE).tex
37 latex $(FILE_BASE).tex
39 #############################################
41 doc_xlp:: $(FILE_BASE).xlp
43 $(FILE_BASE).xlp: $(FILE_BASE).tex $(TEX_ADDITIONAL)
44 ../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).xlp -twice -xlp
46 #############################################
48 doc_html:: $(FILE_BASE)_contents.html $(FILE_BASE).html
51 @ln -s $(FILE_BASE)_contents.html $@
53 $(FILE_BASE)_contents.html: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(GIF_FILES) $(HTML_BUTTONS)
54 ../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE) -twice -html
56 #############################################
58 doc_rtf:: $(FILE_BASE).rtf
60 $(FILE_BASE).rtf: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
61 ../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).rtf -twice -rtf
63 #############################################
65 doc_winhelp:: $(FILE_BASE).win
67 $(FILE_BASE).win: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
68 ../../../bin/$(OSTYPE)/tex2rtf $(FILE_BASE).tex $(FILE_BASE).win -twice -winhelp
69 @echo final conversion still needs to be done by MSWin
71 #############################################
74 @if test "x$(OLD)" = x; then \
75 echo "OLD not defined!"; exit -1; \
77 @if test "x$(NEW)" = x; then \
78 echo "NEW not defined!"; exit -1; \
80 @for each in $(TEX_BASE) $(TEX_ADITIONAL) ; do \
81 cat $$each | sed "s/$(OLD)/$(NEW)/g" > /tmp/subst; \
82 rm $$each; cp /tmp/subst $$each; rm /tmp/subst; \
85 #############################################
94 xpmtoppm $< | ppmtogif | giftopnm | pnmtops -rle -center -noturn -scale 0.5 - > $@
98 xpmtoppm $< | ppmtobmp -windows - > $@
102 xpmtoppm $< | ppmtogif -interlace - > $@