- Small update to documentation
[wine] / documentation / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = none
6
7 INCLUDES = \
8         AUTHORS \
9         LICENSE \
10         WARRANTY
11
12 SOURCES = \
13         wine.texinfo \
14         $(INCLUDES)
15
16 INFOFILES = \
17         wine.info \
18         wine.info-1 \
19         wine.info-2
20
21 HTMLFILES = \
22         wine_toc.html \
23         wine.html
24
25 DVIFILES = wine.dvi
26
27 EXTRASUBDIRS = samples status
28
29 all: $(INFOFILES) $(DVIFILES) $(HTMLFILES)
30
31 info: $(INFOFILES)
32
33 dvi: $(DVIFILES)
34
35 html: $(HTMLFILES)
36
37 @MAKE_RULES@
38
39 $(INFOFILES): $(SOURCES)
40         makeinfo $(SRCDIR)/wine.texinfo
41
42 $(DVIFILES): $(SOURCES)
43         texi2dvi $(SRCDIR)/wine.texinfo
44
45 $(HTMLFILES): $(SOURCES)
46         makeinfo -E wine.texi $(SRCDIR)/wine.texinfo
47         texi2html wine.texi 
48
49 $(INCLUDES):
50         $(RM) $(INCLUDES)
51         for i in $(INCLUDES); do $(LN_S) $(TOPSRCDIR)/$$i $$i || exit 1; done
52
53 install:: 
54         $(INSTALL) -d $(mandir)/man$(prog_manext)
55         $(INSTALL) -d $(mandir)/man$(conf_manext)
56         sed -e 's|$${prefix}|$(prefix)|g' < wine.man > wine.man.tmp && mv wine.man.tmp wine.man
57         $(INSTALL_DATA) wine.man $(mandir)/man$(prog_manext)/wine.$(prog_manext)
58         sed -e 's|$${prefix}|'$(prefix)'|g' < wine.conf.man > wine.conf.man.tmp && mv wine.conf.man.tmp wine.conf.man
59         $(INSTALL_DATA) wine.conf.man $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
60
61 uninstall::
62         $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
63         $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
64
65 # Not done by default because of makeinfo bugs
66 install_info: $(INFOFILES)
67         [ -d $(infodir) ] || mkdir -p $(infodir)
68         for i in $(INFOFILES); do $(INSTALL_DATA) $$i $(infodir)/$$i; done
69
70 uninstall_info:
71         for i in $(INFOFILES); do $(RM) $(infodir)/$$i; done
72
73 clean::
74         $(RM) $(INFOFILES) $(DVIFILES) $(INCLUDES)
75         $(RM) wine.aux wine.cp wine.cps wine.fn wine.fns wine.ky wine.log \
76                 wine.pg wine.toc wine.tp wine.tps wine.vr wine.vrs \
77                 wine.texi
78         $(RM) -r man3w
79
80 ### Dependencies: