Assorted spelling fixes.
[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         configuring.sgml \
16         fonts.sgml \
17         getting.sgml \
18         glossary.sgml \
19         introduction.sgml \
20         printing.sgml \
21         registry.sgml \
22         running.sgml
23
24 WINE_DEVEL_SRCS = \
25         address-space.sgml \
26         architecture.sgml \
27         ddraw.sgml \
28         debugger.sgml \
29         debugging.sgml \
30         documentation.sgml \
31         multimedia.sgml \
32         ole.sgml \
33         opengl.sgml \
34         patches.sgml \
35         testing.sgml \
36         winedev-coding.sgml \
37         winedev-graphical.sgml \
38         winedev-kernel.sgml \
39         winedev-otherdebug.sgml \
40         winedev-windowing.sgml
41
42 WINELIB_USER_SRCS = \
43         winelib-bindlls.sgml \
44         winelib-intro.sgml \
45         winelib-mfc.sgml \
46         winelib-porting.sgml \
47         winelib-toolkit.sgml
48
49 WINE_FAQ_SRCS = \
50         faq.sgml
51
52 MAN_TARGETS = wine.man
53
54 ALLBOOKS = \
55         wine-devel \
56         wine-user \
57         winelib-user
58
59 all: $(MAN_TARGETS)
60
61 @MAKE_RULES@
62
63 everything: $(MAN_TARGETS) doc
64 doc: html pdf ps txt
65 html: $(ALLBOOKS:%=%.html) wine-faq.html
66 pdf: $(ALLBOOKS:%=%.pdf)
67 ps: $(ALLBOOKS:%=%.ps)
68 txt: $(ALLBOOKS:%=%.txt)
69
70 .PHONY: everything doc html pdf ps dist
71
72 .SUFFIXES: .sgml .html .pdf .ps .txt
73
74 .sgml.html:
75         $(DB2HTML) -u $<
76
77 .sgml.pdf:
78         $(DB2PDF) $<
79
80 .sgml.ps:
81         $(DB2PS) $<
82
83 .sgml.txt:
84         $(DB2TXT) $<
85
86 wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt: $(WINE_DEVEL_SRCS)
87 wine-user.pdf wine-user.ps wine-user.html wine-user.txt: $(WINE_USER_SRCS)
88 wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt: $(WINE_FAQ_SRCS)
89 winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt: $(WINELIB_USER_SRCS)
90
91 wine.man: wine.man.in
92         sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
93
94 # Rules for distribution tarballs of formatted docs
95
96 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz wine-faq.txt
97
98 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
99         tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
100
101 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
102         tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
103
104 wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
105         tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
106
107 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
108         tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
109
110 install:: $(MAN_TARGETS)
111         $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
112         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
113         $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
114
115 uninstall::
116         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
117         $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
118
119 install-api-man::
120         for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
121
122 clean::
123         $(RM) *.aux *.dvi *.out *.tex *.log wine-doc-*.tar.gz wine-faq.html wine-faq.txt $(MAN_TARGETS)
124         $(RM) $(ALLBOOKS:%=%.ps) $(ALLBOOKS:%=%.pdf) $(ALLBOOKS:%=%.html) $(ALLBOOKS:%=%.txt)
125         $(RM) -r html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*
126
127 ### Dependencies: