Removed dependency on ntdll_misc.h.
[wine/multimedia.git] / documentation / Makefile.in
blob10c25b698f60854e1b876081cf425b23e9b98f8a
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = none
6 DB2HTML = @DB2HTML@
7 DB2PDF = @DB2PDF@
8 DB2PS = @DB2PS@
10 EXTRASUBDIRS = samples
12 WINE_USER_SRCS = \
13 bugs.sgml \
14 compiling.sgml \
15 configuring.sgml \
16 fonts.sgml \
17 getting.sgml \
18 glossary.sgml \
19 installing.sgml \
20 introduction.sgml \
21 printing.sgml \
22 registry.sgml \
23 running.sgml
25 WINE_DEVEL_SRCS = \
26 architecture.sgml \
27 consoles.sgml \
28 cvs-regression.sgml \
29 debugger.sgml \
30 debugging.sgml \
31 documentation.sgml \
32 i18n.sgml \
33 implementation.sgml \
34 multimedia.sgml \
35 ole.sgml \
36 opengl.sgml \
37 patches.sgml \
38 porting.sgml \
39 testing.sgml
41 WINELIB_USER_SRCS = \
42 winelib-bindlls.sgml \
43 winelib-intro.sgml \
44 winelib-mfc.sgml \
45 winelib-pkg.sgml \
46 winelib-porting.sgml \
47 winelib-toolkit.sgml
49 WINE_FAQ_SRCS = \
50 faq.sgml
52 MAN_TARGETS = wine.man
54 ALLBOOKS = \
55 wine-devel \
56 wine-user \
57 winelib-user
59 all: $(MAN_TARGETS)
61 @MAKE_RULES@
63 everything: $(MAN_TARGETS) doc
64 doc: html pdf ps
65 html: $(ALLBOOKS:%=%.html) wine-faq.html
66 pdf: $(ALLBOOKS:%=%.pdf)
67 ps: $(ALLBOOKS:%=%.ps)
69 .PHONY: everything doc html pdf ps dist
71 .SUFFIXES: .sgml .html .pdf .ps .txt
73 .sgml.html:
74 $(DB2HTML) -u -d $(SRCDIR)/default.dsl $<
76 .sgml.pdf:
77 $(DB2PDF) $<
79 .sgml.ps:
80 $(DB2PS) $<
82 .html.txt:
83 w3m -dump $< > $@ || ($(RM) $@ && false)
85 wine-devel.pdf wine-devel.ps wine-devel.html: $(WINE_DEVEL_SRCS)
86 wine-user.pdf wine-user.ps wine-user.html: $(WINE_USER_SRCS)
87 wine-faq.pdf wine-faq.ps wine-faq.html: $(WINE_FAQ_SRCS)
88 winelib-user.pdf winelib-user.ps winelib-user.html: $(WINELIB_USER_SRCS)
90 wine.man: wine.man.in
91 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 # Rules for distribution tarballs of formatted docs
95 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 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
98 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
100 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
101 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
103 wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
104 tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
106 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
107 tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
109 install:: $(MAN_TARGETS)
110 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
111 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
112 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
114 uninstall::
115 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
116 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
118 install-api-man::
119 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
121 clean::
122 $(RM) *.aux *.dvi *.out *.tex *.log wine-doc-*.tar.gz wine-faq.html wine-faq.txt $(MAN_TARGETS)
123 $(RM) $(ALLBOOKS:%=%.ps) $(ALLBOOKS:%=%.pdf) $(ALLBOOKS:%=%.html) $(ALLBOOKS:%=%.txt)
124 $(RM) -r html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*
126 ### Dependencies: