Updated to the new alsa api.
[wine] / documentation / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = none
6 DB2HTML   = @DB2HTML@
7 DB2PDF    = @DB2PDF@
8 DB2PS     = @DB2PS@
9 DB2TXT    = @DB2TXT@
10
11 EXTRASUBDIRS = samples
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         consoles.sgml \
29         cvs-regression.sgml \
30         ddraw.sgml \
31         debugger.sgml \
32         debugging.sgml \
33         documentation.sgml \
34         i18n.sgml \
35         implementation.sgml \
36         multimedia.sgml \
37         ole.sgml \
38         opengl.sgml \
39         patches.sgml \
40         porting.sgml \
41         testing.sgml
42
43 WINELIB_USER_SRCS = \
44         winelib-bindlls.sgml \
45         winelib-intro.sgml \
46         winelib-mfc.sgml \
47         winelib-porting.sgml \
48         winelib-toolkit.sgml
49
50 WINE_FAQ_SRCS = \
51         faq.sgml
52
53 MAN_TARGETS = wine.man
54
55 ALLBOOKS = \
56         wine-devel \
57         wine-user \
58         winelib-user
59
60 all: $(MAN_TARGETS)
61
62 @MAKE_RULES@
63
64 everything: $(MAN_TARGETS) doc
65 doc: html pdf ps txt
66 html: $(ALLBOOKS:%=%.html) wine-faq.html
67 pdf: $(ALLBOOKS:%=%.pdf)
68 ps: $(ALLBOOKS:%=%.ps)
69 txt: $(ALLBOOKS:%=%.txt)
70
71 .PHONY: everything doc html pdf ps dist
72
73 .SUFFIXES: .sgml .html .pdf .ps .txt
74
75 .sgml.html:
76         $(DB2HTML) -u $<
77
78 .sgml.pdf:
79         $(DB2PDF) $<
80
81 .sgml.ps:
82         $(DB2PS) $<
83
84 .sgml.txt:
85         $(DB2TXT) $<
86
87 wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt: $(WINE_DEVEL_SRCS)
88 wine-user.pdf wine-user.ps wine-user.html wine-user.txt: $(WINE_USER_SRCS)
89 wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt: $(WINE_FAQ_SRCS)
90 winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt: $(WINELIB_USER_SRCS)
91
92 wine.man: wine.man.in
93         sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
94
95 # Rules for distribution tarballs of formatted docs
96
97 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz wine-faq.txt
98
99 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
100         tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
101
102 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
103         tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
104
105 wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
106         tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
107
108 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
109         tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
110
111 install:: $(MAN_TARGETS)
112         $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
113         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
114         $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
115
116 uninstall::
117         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
118         $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
119
120 install-api-man::
121         for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
122
123 clean::
124         $(RM) *.aux *.dvi *.out *.tex *.log wine-doc-*.tar.gz wine-faq.html wine-faq.txt $(MAN_TARGETS)
125         $(RM) $(ALLBOOKS:%=%.ps) $(ALLBOOKS:%=%.pdf) $(ALLBOOKS:%=%.html) $(ALLBOOKS:%=%.txt)
126         $(RM) -r html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*
127
128 ### Dependencies: