Abey George (of Macadamian/Corel)
[wine.git] / documentation / Makefile.in
blobbef83b3c60247d935ffc2ff371d4c3d8bee6f83a
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = none
7 INCLUDES = \
8 AUTHORS \
9 LICENSE \
10 WARRANTY
12 SOURCES = \
13 wine.texinfo \
14 $(INCLUDES)
16 INFOFILES = \
17 wine.info \
18 wine.info-1 \
19 wine.info-2
21 HTMLFILES = \
22 wine_toc.html \
23 wine.html
25 DVIFILES = wine.dvi
27 EXTRASUBDIRS = samples status
29 all: $(INFOFILES) $(DVIFILES) $(HTMLFILES)
31 info: $(INFOFILES)
33 dvi: $(DVIFILES)
35 html: $(HTMLFILES)
37 @MAKE_RULES@
39 $(INFOFILES): $(SOURCES)
40 makeinfo $(SRCDIR)/wine.texinfo
42 $(DVIFILES): $(SOURCES)
43 texi2dvi $(SRCDIR)/wine.texinfo
45 $(HTMLFILES): $(SOURCES)
46 makeinfo -E wine.texi $(SRCDIR)/wine.texinfo
47 texi2html wine.texi
49 $(INCLUDES):
50 $(RM) $(INCLUDES)
51 for i in $(INCLUDES); do $(LN_S) $(TOPSRCDIR)/$$i $$i || exit 1; done
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)
61 uninstall::
62 $(RM) $(mandir)/man$(prog_manext)/wine.$(prog_manext)
63 $(RM) $(mandir)/man$(conf_manext)/wine.conf.$(conf_manext)
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
70 uninstall_info:
71 for i in $(INFOFILES); do $(RM) $(infodir)/$$i; done
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
80 ### Dependencies: