Imported from ../bash-2.05b.tar.gz.
[platform/upstream/bash.git] / lib / readline / doc / Makefile
1 # Derived by hand from the generated readline-src/doc/Makefile
2 # This makefile for Readline library documentation is in -*- text -*- mode.
3 # Emacs likes it that way.
4
5 # Copyright (C) 1996-2002 Free Software Foundation, Inc.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
20
21 topdir = .
22 srcdir = .
23 VPATH = .
24
25 prefix = /usr/local
26 infodir = ${prefix}/info
27
28 mandir = ${prefix}/man
29 manpfx = man
30
31 man1ext = 1
32 man1dir = $(mandir)/$(manpfx)$(man1ext)
33 man3ext = 3
34 man3dir = $(mandir)/$(manpfx)$(man3ext)
35
36 SHELL = /bin/sh
37 RM = rm -f
38
39 INSTALL = /usr/bin/install -c
40 INSTALL_DATA = ${INSTALL} -m 644
41
42 BUILD_DIR = .
43 TEXINPUTDIR = $(srcdir)
44
45 MAKEINFO    = LANGUAGE= makeinfo
46 TEXI2DVI    = $(srcdir)/texi2dvi
47 TEXI2HTML   = $(srcdir)/texi2html
48 QUIETPS     = #set this to -q to shut up dvips
49 PSDPI       = 300       # I don't have any 600-dpi printers
50 DVIPS       = dvips -D ${PSDPI} $(QUIETPS) -o $@     # tricky
51
52 RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
53         $(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo \
54         $(srcdir)/rluserman.texinfo
55 HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
56           $(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
57
58 # This should be a program that converts troff to an ascii-readable format
59 NROFF       = groff -Tascii
60
61 # This should be a program that converts troff to postscript
62 GROFF       = groff
63
64 DVIOBJ = readline.dvi history.dvi rluserman.dvi
65 INFOOBJ = readline.info history.info rluserman.info
66 PSOBJ = readline.ps history.ps rluserman.ps
67 HTMLOBJ = readline.html history.html rluserman.html
68
69 INTERMEDIATE_OBJ = rlman.dvi hist.dvi rluserman.dvi
70
71 CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ)
72
73 .SUFFIXES:      .ps .txt .dvi
74
75 all: info dvi html ps 
76 nodvi: info html
77
78 readline.dvi: $(RLSRC)
79         TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texinfo
80         mv rlman.dvi readline.dvi
81
82 readline.info: $(RLSRC)
83         $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texinfo
84
85 rluserman.dvi: $(RLSRC)
86         TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texinfo
87
88 rluserman.info: $(RLSRC)
89         $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texinfo
90
91 history.dvi: ${HISTSRC}
92         TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/hist.texinfo
93         mv hist.dvi history.dvi
94
95 history.info: ${HISTSRC}
96         $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/hist.texinfo
97
98 readline.ps:    readline.dvi
99         $(RM) $@
100         $(DVIPS) readline.dvi
101
102 rluserman.ps:   rluserman.dvi
103         $(RM) $@
104         $(DVIPS) rluserman.dvi
105
106 history.ps:     history.dvi
107         $(RM) $@
108         $(DVIPS) history.dvi
109
110 readline.html:  ${RLSRC}
111         $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
112         sed -e 's:rlman.html:readline.html:' rlman.html > readline.html
113         $(RM) rlman.html
114
115 rluserman.html: ${RLSRC}
116         $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texinfo
117
118 history.html:   ${HISTSRC}
119         $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
120         sed -e 's:hist.html:history.html:' hist.html > history.html
121         $(RM) hist.html
122
123 info:   $(INFOOBJ)
124 dvi:    $(DVIOBJ)
125 ps:     $(PSOBJ)
126 html:   $(HTMLOBJ)
127
128 clean:
129         $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
130               *.fns *.kys *.tps *.vrs *.o core
131
132 distclean: clean
133         $(RM) $(CREATED_DOCS)
134         $(RM) $(INTERMEDIATE_OBJ)
135         $(RM) Makefile
136
137 mostlyclean: clean
138
139 maintainer-clean: clean
140         $(RM) $(CREATED_DOCS)
141         $(RM) $(INTERMEDIATE_OBJ)
142         $(RM) Makefile
143
144 install:
145         @echo "This documentation should not be installed."
146
147 uninstall: