Import readline 7.0 (patch 5)
[deliverable/binutils-gdb.git] / readline / doc / Makefile.in
CommitLineData
d60d9f65
SS
1# This makefile for Readline library documentation is in -*- text -*- mode.
2# Emacs likes it that way.
1b17e766 3
cc88a640 4# Copyright (C) 1996-2009 Free Software Foundation, Inc.
1b17e766 5
cc88a640
JK
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 3 of the License, or
9# (at your option) any later version.
1b17e766 10
cc88a640
JK
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.
1b17e766 15
cc88a640
JK
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
1b17e766 18
775e241e
TT
19PACKAGE_TARNAME = @PACKAGE_TARNAME@
20
1b17e766 21topdir = @top_srcdir@
d60d9f65 22srcdir = @srcdir@
cc88a640 23VPATH = @srcdir@
d60d9f65
SS
24
25prefix = @prefix@
96e946ca
RW
26
27datarootdir = @datarootdir@
28
775e241e 29docdir = @docdir@
d60d9f65
SS
30infodir = @infodir@
31
32mandir = @mandir@
1b17e766
EZ
33manpfx = man
34
9255ee31
EZ
35man1ext = .1
36man1dir = $(mandir)/$(manpfx)1
37man3ext = .3
38man3dir = $(mandir)/$(manpfx)3
39
40# set this to a value to have the HTML documentation installed
41htmldir =
42
43# Support an alternate destination root directory for package building
44DESTDIR =
d60d9f65 45
c862e87b 46SHELL = @MAKE_SHELL@
d60d9f65
SS
47RM = rm -f
48
1b17e766
EZ
49INSTALL = @INSTALL@
50INSTALL_DATA = @INSTALL_DATA@
51
52BUILD_DIR = @BUILD_DIR@
d60d9f65
SS
53TEXINPUTDIR = $(srcdir)
54
1b17e766 55MAKEINFO = LANGUAGE= makeinfo
d60d9f65
SS
56TEXI2DVI = $(srcdir)/texi2dvi
57TEXI2HTML = $(srcdir)/texi2html
58QUIETPS = #set this to -q to shut up dvips
1b17e766 59PAPERSIZE = letter
5bdf8622 60PSDPI = 600
1b17e766 61DVIPS = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@ # tricky
775e241e
TT
62# experimental; uses external texi2dvi for now; this needs pdftex to be present
63TEXI2PDF = texi2dvi --pdf
d60d9f65 64
5bdf8622
DJ
65# These tools might not be available; they're not required
66DVIPDF = dvipdfm -o $@ -p ${PAPERSIZE}
67PSPDF = gs -sPAPERSIZE=${PAPERSIZE} -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@
68
69RLSRC = $(srcdir)/rlman.texi $(srcdir)/rluser.texi \
70 $(srcdir)/rltech.texi $(srcdir)/version.texi \
cc88a640 71 $(srcdir)/rluserman.texi $(srcdir)/fdl.texi
5bdf8622 72HISTSRC = $(srcdir)/history.texi $(srcdir)/hsuser.texi \
cc88a640 73 $(srcdir)/hstech.texi $(srcdir)/version.texi $(srcdir)/fdl.texi
d60d9f65
SS
74
75# This should be a program that converts troff to an ascii-readable format
76NROFF = groff -Tascii
77
78# This should be a program that converts troff to postscript
79GROFF = groff
80
1b17e766
EZ
81DVIOBJ = readline.dvi history.dvi rluserman.dvi
82INFOOBJ = readline.info history.info rluserman.info
9255ee31 83PSOBJ = readline.ps history.ps rluserman.ps readline_3.ps history_3.ps
1b17e766 84HTMLOBJ = readline.html history.html rluserman.html
9255ee31 85TEXTOBJ = readline.0 history.0
5bdf8622 86PDFOBJ = readline.pdf history.pdf rluserman.pdf
d60d9f65 87
5bdf8622 88INTERMEDIATE_OBJ = rlman.dvi
c862e87b 89
cc88a640 90DIST_DOCS = $(DVIOBJ) $(PSOBJ) $(HTMLOBJ) $(INFOOBJ) $(TEXTOBJ) $(PDFOBJ)
d60d9f65 91
5bdf8622 92.SUFFIXES: .0 .3 .ps .txt .dvi .html .pdf
d60d9f65
SS
93
94.3.0:
95 $(RM) $@
96 -${NROFF} -man $< > $@
97
5bdf8622
DJ
98.ps.pdf:
99 $(RM) $@
100 -${PSPDF} $<
101
102.dvi.pdf:
103 $(RM) $@
104 -${DVIPDF} $<
105
775e241e
TT
106#.texi.pdf:
107# $(RM) $@
108# -${TEXI2PDF} $<
109
cc88a640 110all: info dvi html ps text pdf
d60d9f65
SS
111nodvi: info html text
112
cc88a640
JK
113xdist: $(DIST_DOCS)
114
5bdf8622
DJ
115info: $(INFOOBJ)
116dvi: $(DVIOBJ)
117ps: $(PSOBJ)
118html: $(HTMLOBJ)
119text: $(TEXTOBJ)
120pdf: $(PDFOBJ)
121
d60d9f65 122readline.dvi: $(RLSRC)
5bdf8622 123 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texi
d60d9f65
SS
124 mv rlman.dvi readline.dvi
125
126readline.info: $(RLSRC)
5bdf8622 127 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texi
d60d9f65 128
1b17e766 129rluserman.dvi: $(RLSRC)
5bdf8622 130 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texi
1b17e766
EZ
131
132rluserman.info: $(RLSRC)
5bdf8622 133 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texi
1b17e766 134
d60d9f65 135history.dvi: ${HISTSRC}
5bdf8622 136 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/history.texi
d60d9f65
SS
137
138history.info: ${HISTSRC}
5bdf8622 139 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/history.texi
d60d9f65
SS
140
141readline.ps: readline.dvi
142 $(RM) $@
143 $(DVIPS) readline.dvi
144
1b17e766
EZ
145rluserman.ps: rluserman.dvi
146 $(RM) $@
147 $(DVIPS) rluserman.dvi
148
d60d9f65
SS
149history.ps: history.dvi
150 $(RM) $@
151 $(DVIPS) history.dvi
152
9255ee31
EZ
153#
154# This leaves readline.html and rlman.html -- rlman.html is for www.gnu.org
155#
d60d9f65 156readline.html: ${RLSRC}
5bdf8622 157 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texi
1b17e766 158 sed -e 's:rlman.html:readline.html:g' rlman.html > readline.html
5bdf8622 159 $(RM) rlman.html
d60d9f65 160
1b17e766 161rluserman.html: ${RLSRC}
5bdf8622 162 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texi
1b17e766 163
d60d9f65 164history.html: ${HISTSRC}
5bdf8622 165 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/history.texi
d60d9f65
SS
166
167readline.0: readline.3
168
cc88a640 169readline_3.ps: $(srcdir)/readline.3
9255ee31
EZ
170 ${RM} $@
171 ${GROFF} -man < $(srcdir)/readline.3 > $@
172
173history.0: history.3
174
cc88a640 175history_3.ps: $(srcdir)/history.3
9255ee31
EZ
176 ${RM} $@
177 ${GROFF} -man < $(srcdir)/history.3 > $@
178
775e241e
TT
179readline.pdf: $(RLSRC)
180 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/rlman.texi
181 mv rlman.pdf $@
182
183history.pdf: $(HISTSRC)
184 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/history.texi
185
186rluserman.pdf: $(RLSRC)
187 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/rluserman.texi
5bdf8622 188
d60d9f65 189clean:
5bdf8622
DJ
190 $(RM) *.aux *.bak *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps \
191 *.pgs *.bt *.bts *.rw *.rws *.fns *.kys *.tps *.vrs *.o \
192 core *.core
9255ee31
EZ
193
194mostlyclean: clean
d60d9f65 195
9255ee31 196distclean: clean maybe-clean
c862e87b 197 $(RM) $(INTERMEDIATE_OBJ)
d60d9f65
SS
198 $(RM) Makefile
199
9255ee31 200maybe-clean:
cc88a640 201 -if test "X$(topdir)" != "X.." && test "X$(topdir)" != "X$(BUILD_DIR)"; then \
9255ee31
EZ
202 $(RM) $(DIST_DOCS); \
203 fi
d60d9f65
SS
204
205maintainer-clean: clean
9255ee31 206 $(RM) $(DIST_DOCS)
c862e87b 207 $(RM) $(INTERMEDIATE_OBJ)
5bdf8622 208 $(RM) $(PDFOBJ)
d60d9f65
SS
209 $(RM) Makefile
210
1b17e766 211installdirs: $(topdir)/support/mkdirs
9255ee31
EZ
212 -$(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir)
213 -if test -n "${htmldir}" ; then \
214 $(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(htmldir) ; \
215 fi
d60d9f65 216
c862e87b 217install: installdirs
d60d9f65 218 if test -f readline.info; then \
9255ee31 219 ${INSTALL_DATA} readline.info $(DESTDIR)$(infodir)/readline.info; \
d60d9f65 220 else \
9255ee31 221 ${INSTALL_DATA} $(srcdir)/readline.info $(DESTDIR)$(infodir)/readline.info; \
d60d9f65 222 fi
1b17e766 223 if test -f rluserman.info; then \
9255ee31 224 ${INSTALL_DATA} rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
1b17e766 225 else \
9255ee31 226 ${INSTALL_DATA} $(srcdir)/rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
1b17e766 227 fi
d60d9f65 228 if test -f history.info; then \
9255ee31 229 ${INSTALL_DATA} history.info $(DESTDIR)$(infodir)/history.info; \
d60d9f65 230 else \
9255ee31 231 ${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/history.info; \
d60d9f65 232 fi
1b17e766 233 -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
9255ee31
EZ
234 install-info --dir-file=$(DESTDIR)$(infodir)/dir \
235 $(DESTDIR)$(infodir)/readline.info ; \
236 install-info --dir-file=$(DESTDIR)$(infodir)/dir \
237 $(DESTDIR)$(infodir)/history.info ; \
238 install-info --dir-file=$(DESTDIR)$(infodir)/dir \
239 $(DESTDIR)$(infodir)/rluserman.info ; \
d60d9f65 240 else true; fi
9255ee31
EZ
241 -${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/readline$(man3ext)
242 -${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/history$(man3ext)
243 -if test -n "${htmldir}" ; then \
244 if test -f readline.html; then \
245 ${INSTALL_DATA} readline.html $(DESTDIR)$(htmldir)/readline.html; \
246 else \
247 ${INSTALL_DATA} $(srcdir)/readline.html $(DESTDIR)$(htmldir)/readline.html; \
248 fi ; \
249 if test -f history.html; then \
250 ${INSTALL_DATA} history.html $(DESTDIR)$(htmldir)/history.html; \
251 else \
252 ${INSTALL_DATA} $(srcdir)/history.html $(DESTDIR)$(htmldir)/history.html; \
253 fi ; \
254 if test -f rluserman.html; then \
255 ${INSTALL_DATA} rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
256 else \
257 ${INSTALL_DATA} $(srcdir)/rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
258 fi ; \
259 fi
d60d9f65
SS
260
261uninstall:
9255ee31
EZ
262 $(RM) $(DESTDIR)$(infodir)/readline.info
263 $(RM) $(DESTDIR)$(infodir)/rluserman.info
264 $(RM) $(DESTDIR)$(infodir)/history.info
265 $(RM) $(DESTDIR)$(man3dir)/readline$(man3ext)
266 $(RM) $(DESTDIR)$(man3dir)/history$(man3ext)
267 -if test -n "${htmldir}" ; then \
268 $(RM) $(DESTDIR)$(htmldir)/readline.html ; \
269 $(RM) $(DESTDIR)$(htmldir)/rluserman.html ; \
270 $(RM) $(DESTDIR)$(htmldir)/history.html ; \
271 fi
This page took 0.948682 seconds and 4 git commands to generate.