New loading scheme for Winelib apps, makes them behave like builtin
[wine] / documentation / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = none
6 BOOKNAME  = wine-doc
7 DB2HTML   = db2html
8
9 EXTRASUBDIRS = samples status
10
11 BOOK_SRCS = \
12         architecture.sgml \
13         bugs.sgml \
14         build.sgml \
15         compiling.sgml \
16         configuring.sgml \
17         consoles.sgml \
18         cvs-regression.sgml \
19         debugger.sgml \
20         debugging.sgml \
21         dlls.sgml \
22         documentation.sgml \
23         fonts.sgml \
24         getting.sgml \
25         i18n.sgml \
26         implementation.sgml \
27         installing.sgml \
28         introduction.sgml \
29         ole.sgml \
30         opengl.sgml \
31         packaging.sgml \
32         patches.sgml \
33         porting.sgml \
34         printing.sgml \
35         registry.sgml \
36         running.sgml \
37         tools.sgml \
38         wine-doc.sgml \
39         winelib-bindlls.sgml \
40         winelib-intro.sgml \
41         winelib-mfc.sgml \
42         winelib-pkg.sgml \
43         winelib-porting.sgml \
44         winelib-toolkit.sgml \
45         winelib-user.sgml
46
47 MAN_TARGETS = wine.man
48
49 BOOK_TARGETS = \
50         $(BOOKNAME)/index.html \
51         $(BOOKNAME).pdf \
52         $(BOOKNAME).ps
53
54 all: $(MAN_TARGETS) $(BOOK_TARGETS)
55
56 @MAKE_RULES@
57
58 $(BOOKNAME)/index.html: $(BOOK_SRCS)
59         $(DB2HTML) $(BOOKNAME).sgml
60
61 $(BOOKNAME).pdf: $(BOOK_SRCS)
62         db2pdf -d ./print.dsl $(BOOKNAME).sgml > /dev/null
63
64 $(BOOKNAME).ps: $(BOOK_SRCS)
65         db2ps $(BOOKNAME).sgml > /dev/null
66
67 wine.man: wine.man.in
68         sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/wine.man.in >$@ || $(RM) $@
69
70 install:: $(MAN_TARGETS)
71         $(INSTALL) -d $(mandir)/man$(prog_manext)
72         $(INSTALL) -d $(mandir)/man$(conf_manext)
73         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
74         $(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
75         $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
76
77 uninstall::
78         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
79         $(RM) $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
80         $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
81
82 clean::
83         $(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log $(BOOKNAME).pdf $(BOOKNAME).ps $(MAN_TARGETS)
84         $(RM) -r $(BOOKNAME) html man3w *.junk DBTOHTML_OUTPUT_DIR*
85
86 ### Dependencies: