Wrote a small document on how to package WINE for distributors.
[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
28 all: $(INFOFILES) $(DVIFILES) $(HTMLFILES)
29
30 info: $(INFOFILES)
31
32 dvi: $(DVIFILES)
33
34 html: $(HTMLFILES)
35
36 @MAKE_RULES@
37
38 $(INFOFILES): $(SOURCES)
39         makeinfo $(SRCDIR)/wine.texinfo
40
41 $(DVIFILES): $(SOURCES)
42         texi2dvi $(SRCDIR)/wine.texinfo
43
44 $(HTMLFILES): $(SOURCES)
45         makeinfo -E wine.texi $(SRCDIR)/wine.texinfo
46         texi2html wine.texi 
47
48 $(INCLUDES):
49         $(RM) $(INCLUDES)
50         for i in $(INCLUDES); do $(LN_S) $(TOPSRCDIR)/$$i $$i || exit 1; done
51
52 install:: 
53         [ -d $(mandir) ] || mkdir -p $(mandir)
54         $(INSTALL_DATA) wine.man $(mandir)/wine$(manext)
55
56 uninstall::
57         $(RM) $(mandir)/wine$(manext)
58
59 # Not done by default because of makeinfo bugs
60 install_info: $(INFOFILES)
61         [ -d $(infodir) ] || mkdir -p $(infodir)
62         for i in $(INFOFILES); do $(INSTALL_DATA) $$i $(infodir)/$$i; done
63
64 uninstall_info:
65         for i in $(INFOFILES); do $(RM) $(infodir)/$$i; done
66
67 clean::
68         $(RM) $(INFOFILES) $(DVIFILES) $(INCLUDES)
69         $(RM) wine.aux wine.cp wine.cps wine.fn wine.fns wine.ky wine.log \
70                 wine.pg wine.toc wine.tp wine.tps wine.vr wine.vrs \
71                 wine.texi
72         $(RM) -r man3w
73
74 ### Dependencies: