]> git.saurik.com Git - wxWidgets.git/blob - src/gtk1/setup/rules/doc
fixed another @DEBUG@
[wxWidgets.git] / src / gtk1 / setup / rules / doc
1 SHELL=/bin/sh
2
3 FILE_BASE=$(TEX_BASE:.tex=)
4
5 BMP_FILES=$(XPM_FILES:.xpm=.bmp)
6 EPS_FILES=$(XPM_FILES:.xpm=.eps)
7 GIF_FILES=$(XPM_FILES:.xpm=.gif)
8
9 TEX2RTF=$(WXBASEDIR)/bin/$(OSTYPE)/tex2rtf
10
11 HTML_BUTTONS=back.gif forward.gif contents.gif up.gif
12
13 all:: doc
14
15 clean::
16 @ for each in $(DIRS) . ; do \
17 ( cd $$each; \
18 rm -f *.bmp *.eps *.gif *.aux *.dvi *.log \
19 *.ps *.toc *~ *.idx *.hlp *.html \
20 *.rtf *.ref *.xlp *.con *.win *.fts \
21 *.hpj *.HLP; \
22 ); done
23
24 doc:: doc_ps doc_html doc_xlp doc_winhelp doc_rtf
25
26 #############################################
27
28 doc_ps:: $(FILE_BASE).ps
29
30 $(FILE_BASE).ps: $(FILE_BASE).dvi
31 dvips $(FILE_BASE).dvi -o$@
32
33 #############################################
34
35 doc_dvi:: $(FILE_BASE).dvi
36
37 $(FILE_BASE).dvi: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(EPS_FILES)
38 latex $(FILE_BASE).tex
39 latex $(FILE_BASE).tex
40
41 #############################################
42
43 doc_xlp:: $(FILE_BASE).xlp
44
45 $(FILE_BASE).xlp: $(FILE_BASE).tex $(TEX_ADDITIONAL)
46 $(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE).xlp -twice -xlp
47
48 #############################################
49
50 doc_html:: $(FILE_BASE)_contents.html $(FILE_BASE).html
51
52 $(FILE_BASE).html:
53 @ln -s $(FILE_BASE)_contents.html $@
54
55 $(FILE_BASE)_contents.html: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(GIF_FILES) $(HTML_BUTTONS)
56 $(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE) -twice -html
57
58 #############################################
59
60 doc_rtf:: $(FILE_BASE).rtf
61
62 $(FILE_BASE).rtf: $(FILE_BASE).tex $(TEX_ADDITIONAL) $(BMP_FILES)
63 $(TEX2RTF) $(FILE_BASE).tex $(FILE_BASE).rtf -twice -rtf
64
65 #############################################
66
67 doc_winhelp:: $(FILE_BASE).win
68
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
72
73 #############################################
74
75 .SUFFIXES:
76 .SUFFIXES: .eps .xpm
77 .SUFFIXES: .bmp .xpm
78 .SUFFIXES: .gif .xpm
79
80 .xpm.eps :
81 @$(RM) -f $@
82 xpmtoppm $< | ppmtogif | giftopnm | pnmtops -rle -center -noturn -scale 0.5 - > $@
83
84 .xpm.bmp :
85 @$(RM) -f $@
86 xpmtoppm $< | ppmtobmp -windows - > $@
87
88 .xpm.gif :
89 @$(RM) -f $@
90 xpmtoppm $< | ppmtogif -interlace - > $@