1 # This makefile for Readline library documentation is in -*- text -*- mode.
2 # Emacs likes it that way.
4 # Copyright (C) 1996 Free Software Foundation, Inc.
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)
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.
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.
31 man1dir = $(mandir)/$(manpfx
)$(man1ext)
33 man3dir = $(mandir)/$(manpfx
)$(man3ext)
39 INSTALL_DATA
= @INSTALL_DATA@
41 BUILD_DIR
= @BUILD_DIR@
42 TEXINPUTDIR
= $(srcdir)
44 MAKEINFO
= LANGUAGE
= makeinfo
45 TEXI2DVI
= $(srcdir)/texi2dvi
46 TEXI2HTML
= $(srcdir)/texi2html
47 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
) -t
${PAPERSIZE} -o
$@
# tricky
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
58 # This should be a program that converts troff to an ascii-readable format
61 # This should be a program that converts troff to postscript
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
70 INTERMEDIATE_OBJ
= rlman.
dvi hist.
dvi rluserman.
dvi
72 CREATED_DOCS
= $(DVIOBJ
) $(INFOOBJ
) $(PSOBJ
) $(HTMLOBJ
) $(TEXTOBJ
)
74 .SUFFIXES
: .0 .3 .ps .txt .
dvi
78 -${NROFF} -man
$< > $@
80 all: info dvi html ps text
83 readline.
dvi: $(RLSRC
)
84 TEXINPUTS
=.
:$(TEXINPUTDIR
):$$TEXINPUTS $(TEXI2DVI
) $(srcdir)/rlman.texinfo
85 mv rlman.
dvi readline.
dvi
87 readline.
info: $(RLSRC
)
88 $(MAKEINFO
) --no-split
-I
$(TEXINPUTDIR
) -o
$@
$(srcdir)/rlman.texinfo
90 rluserman.
dvi: $(RLSRC
)
91 TEXINPUTS
=.
:$(TEXINPUTDIR
):$$TEXINPUTS $(TEXI2DVI
) $(srcdir)/rluserman.texinfo
93 rluserman.
info: $(RLSRC
)
94 $(MAKEINFO
) --no-split
-I
$(TEXINPUTDIR
) -o
$@
$(srcdir)/rluserman.texinfo
96 history.
dvi: ${HISTSRC}
97 TEXINPUTS
=.
:$(TEXINPUTDIR
):$$TEXINPUTS $(TEXI2DVI
) $(srcdir)/hist.texinfo
98 mv hist.
dvi history.
dvi
100 history.
info: ${HISTSRC}
101 $(MAKEINFO
) --no-split
-I
$(TEXINPUTDIR
) -o
$@
$(srcdir)/hist.texinfo
103 readline.ps
: readline.
dvi
105 $(DVIPS
) readline.
dvi
107 rluserman.ps
: rluserman.
dvi
109 $(DVIPS
) rluserman.
dvi
111 history.ps
: history.
dvi
115 readline.html
: ${RLSRC}
116 $(TEXI2HTML
) -menu
-monolithic
-I
$(TEXINPUTDIR
) $(srcdir)/rlman.texinfo
117 sed
-e
's:rlman.html:readline.html:g' rlman.html
> readline.html
120 rluserman.html
: ${RLSRC}
121 $(TEXI2HTML
) -menu
-monolithic
-I
$(TEXINPUTDIR
) $(srcdir)/rluserman.texinfo
123 history.html
: ${HISTSRC}
124 $(TEXI2HTML
) -menu
-monolithic
-I
$(TEXINPUTDIR
) $(srcdir)/hist.texinfo
125 sed
-e
's:hist.html:history.html:g' hist.html
> history.html
134 readline
.0: readline
.3
137 $(RM
) *.aux
*.cp
*.fn
*.ky
*.log
*.pg
*.toc
*.tp
*.vr
*.cps
*.pgs \
138 *.fns
*.kys
*.tps
*.vrs
*.bt
*.bts
*.o core
141 $(RM
) $(CREATED_DOCS
)
142 $(RM
) $(INTERMEDIATE_OBJ
)
147 maintainer-clean
: clean
148 $(RM
) $(CREATED_DOCS
)
149 $(RM
) $(INTERMEDIATE_OBJ
)
152 installdirs: $(topdir
)/support
/mkdirs
153 -$(SHELL
) $(topdir
)/support
/mkdirs
$(infodir) $(man3dir)
156 if
test -f readline.
info; then \
157 ${INSTALL_DATA} readline.
info $(infodir)/readline.
info; \
159 ${INSTALL_DATA} $(srcdir)/readline.
info $(infodir)/readline.
info; \
161 if
test -f rluserman.
info; then \
162 ${INSTALL_DATA} rluserman.
info $(infodir)/rluserman.
info; \
164 ${INSTALL_DATA} $(srcdir)/rluserman.
info $(infodir)/rluserman.
info; \
166 if
test -f history.
info; then \
167 ${INSTALL_DATA} history.
info $(infodir)/history.
info; \
169 ${INSTALL_DATA} $(srcdir)/history.
info $(infodir)/history.
info; \
171 -if
$(SHELL
) -c
'install-info --version' >/dev
/null
2>&1; then \
172 install-info
--dir-file
=$(infodir)/dir $(infodir)/readline.
info ; \
173 install-info
--dir-file
=$(infodir)/dir $(infodir)/history.
info ; \
175 -${INSTALL_DATA} $(srcdir)/readline
.3 $(man3dir)/readline
.3
178 $(RM
) $(infodir)/readline.
info
179 $(RM
) $(infodir)/rluserman.
info
180 $(RM
) $(infodir)/history.
info
181 $(RM
) $(man3dir)/readline
.3