Make sure drawable_org is set correctly when using one of the parents
[wine/dcerpc.git] / documentation / Makefile.in
blob40db5bb9391caf079aeb3f922c903c13182625ca
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 status
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 build.sgml \
28 consoles.sgml \
29 cvs-regression.sgml \
30 cvs.sgml \
31 debugger.sgml \
32 debugging.sgml \
33 dlls.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 \
43 tools.sgml
45 WINELIB_USER_SRCS = \
46 winelib-bindlls.sgml \
47 winelib-intro.sgml \
48 winelib-mfc.sgml \
49 winelib-pkg.sgml \
50 winelib-porting.sgml \
51 winelib-toolkit.sgml
53 WINE_FAQ_SRCS = \
54 faq.sgml
56 WINE_DOC_SRCS = \
57 $(WINELIB_USER_SRCS) \
58 $(WINE_DEVEL_SRCS) \
59 $(WINE_FAQ_SRCS) \
60 $(WINE_USER_SRCS)
62 MAN_TARGETS = wine.man
64 ALLBOOKS = \
65 wine-devel \
66 wine-faq \
67 wine-user \
68 winelib-user
70 BOOKS_TARGETS = \
71 $(ALLBOOKS:%=%/index.html) \
72 $(ALLBOOKS:%=%.pdf) \
73 $(ALLBOOKS:%=%.ps)
75 all: $(MAN_TARGETS)
77 @MAKE_RULES@
79 everything: $(MAN_TARGETS) $(BOOKS_TARGETS)
80 doc: $(BOOKS_TARGETS)
81 html: $(ALLBOOKS:%=%/index.html)
82 pdf: $(ALLBOOKS:%=%.pdf)
83 ps: $(ALLBOOKS:%=%.ps)
85 .PHONY: everything doc html pdf ps dist
87 .SUFFIXES: .sgml /index.html .pdf .ps
89 .sgml/index.html:
90 $(DB2HTML) -d $(SRCDIR)/default.dsl -o $* $<
92 .sgml.pdf:
93 $(DB2PDF) -d $(SRCDIR)/print.dsl $< >/dev/null
95 .sgml.ps:
96 $(DB2PS) $< >/dev/null
98 wine-devel.pdf wine-devel.ps wine-devel/index.html: $(WINE_DEVEL_SRCS)
99 wine-faq.pdf wine-faq.ps wine-faq/index.html: $(WINE_FAQ_SRCS)
100 wine-user.pdf wine-user.ps wine-user/index.html: $(WINE_USER_SRCS)
101 winelib-user.pdf winelib-user.ps winelib-user/index.html: $(WINELIB_USER_SRCS)
103 wine.man: wine.man.in
104 sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || $(RM) $@
106 # Rules for distribution tarballs of formatted docs
108 dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz
110 wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps)
111 tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || $(RM) $@
113 wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf)
114 tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || $(RM) $@
116 wine-doc-html.tar.gz: $(ALLBOOKS:%=%/index.html)
117 tar cf - $(ALLBOOKS:%=%/*.html) | gzip -9 > $@ || $(RM) $@
119 wine-doc-txt.tar.gz: $(ALLBOOKS:%=%/index.html)
120 for i in $(ALLBOOKS:%=%/*.html); do w3m -dump $$i > `dirname $$i`/`basename $$i .html`.txt || exit 1; done
121 tar cf - $(ALLBOOKS:%=%/*.txt) | gzip -9 > $@ || $(RM) $@
123 install:: $(MAN_TARGETS)
124 $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext)
125 $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
126 $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
128 uninstall::
129 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
130 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
132 install-api-man::
133 for i in $(SRCDIR)/man$(api_manext)/*; do $(INSTALL_DATA) $$i $(mandir)/man$(api_manext); done
135 clean::
136 $(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log wine-doc-*.tar.gz $(MAN_TARGETS)
137 $(RM) -r $(ALLBOOKS) html api-guide man$(api_manext) *.junk DBTOHTML_OUTPUT_DIR*
139 ### Dependencies: