- Localize origin, location, and rectangle computation.
[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         testing.sgml \
38         tools.sgml \
39         wine-doc.sgml \
40         winelib-bindlls.sgml \
41         winelib-intro.sgml \
42         winelib-mfc.sgml \
43         winelib-pkg.sgml \
44         winelib-porting.sgml \
45         winelib-toolkit.sgml \
46         winelib-user.sgml
47
48 MAN_TARGETS = wine.man
49
50 BOOK_TARGETS = \
51         $(BOOKNAME)/index.html \
52         $(BOOKNAME).pdf \
53         $(BOOKNAME).ps
54
55 all: $(MAN_TARGETS)
56
57 @MAKE_RULES@
58
59 everything: $(MAN_TARGETS) $(BOOK_TARGETS)
60 doc: $(BOOK_TARGETS)
61 html: $(BOOKNAME)/index.html
62 pdf: $(BOOKNAME).pdf
63 ps: $(BOOKNAME).ps
64
65 .PHONY: everything doc html pdf ps
66
67 $(BOOKNAME)/index.html: $(BOOK_SRCS)
68         $(DB2HTML) $(BOOKNAME).sgml
69
70 $(BOOKNAME).pdf: $(BOOK_SRCS)
71         db2pdf -d ./print.dsl $(BOOKNAME).sgml > /dev/null
72
73 $(BOOKNAME).ps: $(BOOK_SRCS)
74         db2ps $(BOOKNAME).sgml > /dev/null
75
76 wine.man: wine.man.in
77         sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || $(RM) $@
78
79 install:: $(MAN_TARGETS)
80         $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext)
81         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
82         $(INSTALL_DATA) $(SRCDIR)/wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
83
84 uninstall::
85         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
86         $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
87
88 clean::
89         $(RM) *.aux *.dvi *.out *.pdf *.ps *.tex *.log $(BOOKNAME).pdf $(BOOKNAME).ps $(MAN_TARGETS)
90         $(RM) -r $(BOOKNAME) html man3w *.junk DBTOHTML_OUTPUT_DIR*
91
92 ### Dependencies: