Release 20040914.
[wine/gsoc-2012-control.git] / documentation / Makefile.in
blobf80417e7b2103da305970b277179390e92c390f0
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@
11 EXTRASUBDIRS = samples
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
26 WINE_DEVEL_SRCS = \
27 address-space.sgml \
28 architecture.sgml \
29 consoles.sgml \
30 cvs-regression.sgml \
31 ddraw.sgml \
32 debugger.sgml \
33 debugging.sgml \
34 documentation.sgml \
35 i18n.sgml \
36 implementation.sgml \
37 multimedia.sgml \
38 ole.sgml \
39 opengl.sgml \
40 patches.sgml \
41 porting.sgml \
42 testing.sgml
44 WINELIB_USER_SRCS = \
45 winelib-bindlls.sgml \
46 winelib-intro.sgml \
47 winelib-mfc.sgml \
48 winelib-porting.sgml \
49 winelib-toolkit.sgml
51 WINE_FAQ_SRCS = \
52 faq.sgml
54 MAN_TARGETS = wine.man
56 ALLBOOKS = \
57 wine-devel \
58 wine-user \
59 winelib-user
61 all: $(MAN_TARGETS)
63 @MAKE_RULES@
65 everything: $(MAN_TARGETS) doc
66 doc: html pdf ps txt
67 html: $(ALLBOOKS:%=%.html) wine-faq.html
68 pdf: $(ALLBOOKS:%=%.pdf)
69 ps: $(ALLBOOKS:%=%.ps)
70 txt: $(ALLBOOKS:%=%.txt)
72 .PHONY: everything doc html pdf ps dist
74 .SUFFIXES: .sgml .html .pdf .ps .txt
76 .sgml.html:
77 $(DB2HTML) -u $<
79 .sgml.pdf:
80 $(DB2PDF) $<
82 .sgml.ps:
83 $(DB2PS) $<
85 .sgml.txt:
86 $(DB2TXT) $<
88 wine-devel.pdf wine-devel.ps wine-devel.html wine-devel.txt: $(WINE_DEVEL_SRCS)
89 wine-user.pdf wine-user.ps wine-user.html wine-user.txt: $(WINE_USER_SRCS)
90 wine-faq.pdf wine-faq.ps wine-faq.html wine-faq.txt: $(WINE_FAQ_SRCS)
91 winelib-user.pdf winelib-user.ps winelib-user.html winelib-user.txt: $(WINELIB_USER_SRCS)
93 wine.man: wine.man.in
94 sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false)
96 # Rules for distribution tarballs of formatted docs
98 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz wine-faq.txt
100 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
101 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false)
103 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
104 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false)
106 wine-doc-html.tar.gz: $(ALLBOOKS:%=%.html)
107 tar cf - $(ALLBOOKS:%=%.html) | gzip -9 > $@ || ($(RM) $@ && false)
109 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%.txt)
110 tar cf - $(ALLBOOKS:%=%.txt) | gzip -9 > $@ || ($(RM) $@ && false)
112 install:: $(MAN_TARGETS)
113 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
114 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
115 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
117 uninstall::
118 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
119 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
121 install-api-man::
122 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
124 clean::
125 $(RM) *.aux *.dvi *.out *.tex *.log wine-doc-*.tar.gz wine-faq.html wine-faq.txt $(MAN_TARGETS)
126 $(RM) $(ALLBOOKS:%=%.ps) $(ALLBOOKS:%=%.pdf) $(ALLBOOKS:%=%.html) $(ALLBOOKS:%=%.txt)
127 $(RM) -r html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*
129 ### Dependencies: