Added entry for DirectSoundFullDuplexCreate.
[wine] / documentation / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = none
6 BOOKNAME  = wine-doc
7 DB2HTML   = @DB2HTML@
8 DB2PDF    = @DB2PDF@
9 DB2PS     = @DB2PS@
10
11 EXTRASUBDIRS = samples status
12
13 WINE_USER_SRCS = \
14         bugs.sgml \
15         compiling.sgml \
16         configuring.sgml \
17         fonts.sgml \
18         getting.sgml \
19         glossary.sgml \
20         installing.sgml \
21         introduction.sgml \
22         printing.sgml \
23         registry.sgml \
24         running.sgml
25
26 WINE_DEVEL_SRCS = \
27         architecture.sgml \
28         build.sgml \
29         consoles.sgml \
30         cvs-regression.sgml \
31         cvs.sgml \
32         debugger.sgml \
33         debugging.sgml \
34         dlls.sgml \
35         documentation.sgml \
36         i18n.sgml \
37         implementation.sgml \
38         multimedia.sgml \
39         ole.sgml \
40         opengl.sgml \
41         patches.sgml \
42         porting.sgml \
43         testing.sgml \
44         tools.sgml
45
46 WINELIB_USER_SRCS = \
47         winelib-bindlls.sgml \
48         winelib-intro.sgml \
49         winelib-mfc.sgml \
50         winelib-pkg.sgml \
51         winelib-porting.sgml \
52         winelib-toolkit.sgml
53
54 WINE_PKG_SRCS = \
55         packaging.sgml
56
57 WINE_FAQ_SRCS = \
58         faq.sgml
59
60 WINE_DOC_SRCS = \
61         $(WINELIB_USER_SRCS) \
62         $(WINE_DEVEL_SRCS) \
63         $(WINE_FAQ_SRCS) \
64         $(WINE_PKG_SRCS) \
65         $(WINE_USER_SRCS)
66
67 MAN_TARGETS = wine.man
68
69 ALLBOOKS = \
70         wine-devel \
71         wine-faq \
72         wine-pkg \
73         wine-user \
74         winelib-user
75
76 BOOKS_TARGETS = \
77         $(ALLBOOKS:%=%/index.html) \
78         $(ALLBOOKS:%=%.pdf) \
79         $(ALLBOOKS:%=%.ps)
80
81 all: $(MAN_TARGETS)
82
83 @MAKE_RULES@
84
85 everything: $(MAN_TARGETS) $(BOOKS_TARGETS)
86 doc: $(BOOKS_TARGETS)
87 html: $(ALLBOOKS:%=%/index.html)
88 pdf: $(ALLBOOKS:%=%.pdf)
89 ps: $(ALLBOOKS:%=%.ps)
90
91 # this is the all-in-one book, not built by default
92 wine-doc: wine-doc/index.html wine-doc.pdf wine-doc.ps
93
94 .PHONY: everything doc html pdf ps wine-doc dist
95
96 .SUFFIXES: .sgml /index.html .pdf .ps
97
98 .sgml/index.html:
99         $(DB2HTML) -d $(SRCDIR)/default.dsl -o $* $<
100
101 .sgml.pdf:
102         $(DB2PDF) -d $(SRCDIR)/print.dsl $< >/dev/null
103
104 .sgml.ps:
105         $(DB2PS) $< >/dev/null
106
107 wine-devel.pdf wine-devel.ps wine-devel/index.html: $(WINE_DEVEL_SRCS)
108 wine-faq.pdf wine-faq.ps wine-faq/index.html: $(WINE_FAQ_SRCS)
109 wine-pkg.pdf wine-pkg.ps wine-pkg/index.html: $(WINE_PKG_SRCS)
110 wine-user.pdf wine-user.ps wine-user/index.html: $(WINE_USER_SRCS)
111 winelib-user.pdf winelib-user.ps winelib-user/index.html: $(WINELIB_USER_SRCS)
112 wine-doc.pdf wine-doc.ps wine-doc/index.html: $(WINE_DOC_SRCS)
113
114 wine.man: wine.man.in
115         sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || $(RM) $@
116
117 # Rules for distribution tarballs of formatted docs
118
119 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz
120
121 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
122         tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || $(RM) $@
123
124 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
125         tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || $(RM) $@
126
127 wine-doc-html.tar.gz: $(ALLBOOKS:%=%/index.html)
128         tar cf - $(ALLBOOKS:%=%/*.html) | gzip -9 > $@ || $(RM) $@
129
130 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%/index.html)
131         for i in $(ALLBOOKS:%=%/*.html); do w3m -dump $$i > `dirname $$i`/`basename $$i .html`.txt || exit 1; done
132         tar cf - $(ALLBOOKS:%=%/*.txt) | gzip -9 > $@ || $(RM) $@
133
134 install:: $(MAN_TARGETS)
135         $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
136         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
137         $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
138
139 uninstall::
140         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
141         $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
142
143 install-api-man::
144         for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
145
146 clean::
147         $(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log wine-doc-*.tar.gz $(MAN_TARGETS)
148         $(RM) -r wine-doc $(ALLBOOKS) html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*
149
150 ### Dependencies: