]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/setup/rules/doc
Initial revision
[wxWidgets.git] / src / gtk / setup / rules / doc
CommitLineData
c801d85f
KB
1SHELL=/bin/sh
2
3FILE_BASE=$(TEX_BASE:.tex=)
4
5BMP_FILES=$(XPM_FILES:.xpm=.bmp)
6EPS_FILES=$(XPM_FILES:.xpm=.eps)
7GIF_FILES=$(XPM_FILES:.xpm=.gif)
8
9TEX2RTF=$(WXBASEDIR)/bin/$(OSTYPE)/tex2rtf
10
11HTML_BUTTONS=back.gif forward.gif contents.gif up.gif
12
13all:: doc
14
15clean::
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
24doc:: doc_ps doc_html doc_xlp doc_winhelp doc_rtf
25
26#############################################
27
28doc_ps:: $(FILE_BASE).ps
29
30$(FILE_BASE).ps: $(FILE_BASE).dvi
31 dvips $(FILE_BASE).dvi -o$@
32
33#############################################
34
35doc_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
43doc_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
50doc_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
60doc_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
67doc_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 - > $@