8a85ae17c8b9853f4b4ba588307e2751c84664ca
[deliverable/binutils-gdb.git] / readline / doc / Makefile.in
1 # This makefile for Readline library documentation is in -*- text -*- mode.
2 # Emacs likes it that way.
3
4 # Copyright (C) 1996 Free Software Foundation, Inc.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
19
20 topdir = @top_srcdir@
21 srcdir = @srcdir@
22 VPATH = .:@srcdir@
23
24 prefix = @prefix@
25 infodir = @infodir@
26
27 mandir = @mandir@
28 manpfx = man
29
30 man1ext = .1
31 man1dir = $(mandir)/$(manpfx)1
32 man3ext = .3
33 man3dir = $(mandir)/$(manpfx)3
34
35 # set this to a value to have the HTML documentation installed
36 htmldir =
37
38 # Support an alternate destination root directory for package building
39 DESTDIR =
40
41 SHELL = @MAKE_SHELL@
42 RM = rm -f
43
44 INSTALL = @INSTALL@
45 INSTALL_DATA = @INSTALL_DATA@
46
47 BUILD_DIR = @BUILD_DIR@
48 TEXINPUTDIR = $(srcdir)
49
50 MAKEINFO = LANGUAGE= makeinfo
51 TEXI2DVI = $(srcdir)/texi2dvi
52 TEXI2HTML = $(srcdir)/texi2html
53 QUIETPS = #set this to -q to shut up dvips
54 PAPERSIZE = letter
55 PSDPI = 300 # I don't have any 600-dpi printers
56 DVIPS = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@ # tricky
57
58 RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
59 $(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo \
60 $(srcdir)/rluserman.texinfo
61 HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
62 $(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
63
64 # This should be a program that converts troff to an ascii-readable format
65 NROFF = groff -Tascii
66
67 # This should be a program that converts troff to postscript
68 GROFF = groff
69
70 DVIOBJ = readline.dvi history.dvi rluserman.dvi
71 INFOOBJ = readline.info history.info rluserman.info
72 PSOBJ = readline.ps history.ps rluserman.ps readline_3.ps history_3.ps
73 HTMLOBJ = readline.html history.html rluserman.html
74 TEXTOBJ = readline.0 history.0
75
76 INTERMEDIATE_OBJ = rlman.dvi hist.dvi rluserman.dvi
77
78 DIST_DOCS = $(DVIOBJ) $(PSOBJ) $(HTMLOBJ) $(INFOOBJ) $(TEXTOBJ)
79
80 .SUFFIXES: .0 .3 .ps .txt .dvi
81
82 .3.0:
83 $(RM) $@
84 -${NROFF} -man $< > $@
85
86 all: info dvi html ps text
87 nodvi: info html text
88
89 readline.dvi: $(RLSRC)
90 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texinfo
91 mv rlman.dvi readline.dvi
92
93 readline.info: $(RLSRC)
94 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texinfo
95
96 rluserman.dvi: $(RLSRC)
97 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texinfo
98
99 rluserman.info: $(RLSRC)
100 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texinfo
101
102 history.dvi: ${HISTSRC}
103 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/hist.texinfo
104 mv hist.dvi history.dvi
105
106 history.info: ${HISTSRC}
107 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/hist.texinfo
108
109 readline.ps: readline.dvi
110 $(RM) $@
111 $(DVIPS) readline.dvi
112
113 rluserman.ps: rluserman.dvi
114 $(RM) $@
115 $(DVIPS) rluserman.dvi
116
117 history.ps: history.dvi
118 $(RM) $@
119 $(DVIPS) history.dvi
120
121 #
122 # This leaves readline.html and rlman.html -- rlman.html is for www.gnu.org
123 #
124 readline.html: ${RLSRC}
125 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
126 sed -e 's:rlman.html:readline.html:g' rlman.html > readline.html
127
128 rluserman.html: ${RLSRC}
129 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texinfo
130
131 history.html: ${HISTSRC}
132 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
133 sed -e 's:hist.html:history.html:g' hist.html > history.html
134 $(RM) hist.html
135
136 info: $(INFOOBJ)
137 dvi: $(DVIOBJ)
138 ps: $(PSOBJ)
139 html: $(HTMLOBJ)
140 text: $(TEXTOBJ)
141
142 readline.0: readline.3
143
144 readline_3.ps: readline.3
145 ${RM} $@
146 ${GROFF} -man < $(srcdir)/readline.3 > $@
147
148 history.0: history.3
149
150 history_3.ps: history.3
151 ${RM} $@
152 ${GROFF} -man < $(srcdir)/history.3 > $@
153
154 clean:
155 $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
156 *.fns *.kys *.tps *.vrs *.bt *.bts *.o core *.core
157
158 mostlyclean: clean
159
160 distclean: clean maybe-clean
161 $(RM) $(INTERMEDIATE_OBJ)
162 $(RM) Makefile
163
164 maybe-clean:
165 -if test "X$(topdir)" != "X$(BUILD_DIR)"; then \
166 $(RM) $(DIST_DOCS); \
167 fi
168
169 maintainer-clean: clean
170 $(RM) $(DIST_DOCS)
171 $(RM) $(INTERMEDIATE_OBJ)
172 $(RM) Makefile
173
174 installdirs: $(topdir)/support/mkdirs
175 -$(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir)
176 -if test -n "${htmldir}" ; then \
177 $(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(htmldir) ; \
178 fi
179
180 install: installdirs
181 if test -f readline.info; then \
182 ${INSTALL_DATA} readline.info $(DESTDIR)$(infodir)/readline.info; \
183 else \
184 ${INSTALL_DATA} $(srcdir)/readline.info $(DESTDIR)$(infodir)/readline.info; \
185 fi
186 if test -f rluserman.info; then \
187 ${INSTALL_DATA} rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
188 else \
189 ${INSTALL_DATA} $(srcdir)/rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
190 fi
191 if test -f history.info; then \
192 ${INSTALL_DATA} history.info $(DESTDIR)$(infodir)/history.info; \
193 else \
194 ${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/history.info; \
195 fi
196 -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
197 install-info --dir-file=$(DESTDIR)$(infodir)/dir \
198 $(DESTDIR)$(infodir)/readline.info ; \
199 install-info --dir-file=$(DESTDIR)$(infodir)/dir \
200 $(DESTDIR)$(infodir)/history.info ; \
201 install-info --dir-file=$(DESTDIR)$(infodir)/dir \
202 $(DESTDIR)$(infodir)/rluserman.info ; \
203 else true; fi
204 -${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/readline$(man3ext)
205 -${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/history$(man3ext)
206 -if test -n "${htmldir}" ; then \
207 if test -f readline.html; then \
208 ${INSTALL_DATA} readline.html $(DESTDIR)$(htmldir)/readline.html; \
209 else \
210 ${INSTALL_DATA} $(srcdir)/readline.html $(DESTDIR)$(htmldir)/readline.html; \
211 fi ; \
212 if test -f history.html; then \
213 ${INSTALL_DATA} history.html $(DESTDIR)$(htmldir)/history.html; \
214 else \
215 ${INSTALL_DATA} $(srcdir)/history.html $(DESTDIR)$(htmldir)/history.html; \
216 fi ; \
217 if test -f rluserman.html; then \
218 ${INSTALL_DATA} rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
219 else \
220 ${INSTALL_DATA} $(srcdir)/rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
221 fi ; \
222 fi
223
224 uninstall:
225 $(RM) $(DESTDIR)$(infodir)/readline.info
226 $(RM) $(DESTDIR)$(infodir)/rluserman.info
227 $(RM) $(DESTDIR)$(infodir)/history.info
228 $(RM) $(DESTDIR)$(man3dir)/readline$(man3ext)
229 $(RM) $(DESTDIR)$(man3dir)/history$(man3ext)
230 -if test -n "${htmldir}" ; then \
231 $(RM) $(DESTDIR)$(htmldir)/readline.html ; \
232 $(RM) $(DESTDIR)$(htmldir)/rluserman.html ; \
233 $(RM) $(DESTDIR)$(htmldir)/history.html ; \
234 fi
This page took 0.033799 seconds and 3 git commands to generate.