1997-06-07 12:17:44 +00:00
|
|
|
# This makefile for Readline library documentation is in -*- text -*- mode.
|
|
|
|
# Emacs likes it that way.
|
2000-03-19 21:18:09 +00:00
|
|
|
|
|
|
|
# Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
|
|
|
|
|
|
topdir = @top_srcdir@
|
1997-06-07 12:17:44 +00:00
|
|
|
srcdir = @srcdir@
|
1998-04-28 06:22:20 +00:00
|
|
|
VPATH = .:@srcdir@
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
infodir = @infodir@
|
|
|
|
|
|
|
|
mandir = @mandir@
|
2000-03-19 21:18:09 +00:00
|
|
|
manpfx = man
|
|
|
|
|
2003-08-31 17:55:46 +00:00
|
|
|
man1ext = .1
|
|
|
|
man1dir = $(mandir)/$(manpfx)1
|
|
|
|
man3ext = .3
|
|
|
|
man3dir = $(mandir)/$(manpfx)3
|
|
|
|
|
|
|
|
# set this to a value to have the HTML documentation installed
|
|
|
|
htmldir =
|
|
|
|
|
|
|
|
# Support an alternate destination root directory for package building
|
|
|
|
DESTDIR =
|
1997-06-07 12:17:44 +00:00
|
|
|
|
1999-05-28 01:59:23 +00:00
|
|
|
SHELL = @MAKE_SHELL@
|
1997-06-07 12:17:44 +00:00
|
|
|
RM = rm -f
|
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
BUILD_DIR = @BUILD_DIR@
|
1997-06-07 12:17:44 +00:00
|
|
|
TEXINPUTDIR = $(srcdir)
|
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
MAKEINFO = LANGUAGE= makeinfo
|
1997-06-07 12:17:44 +00:00
|
|
|
TEXI2DVI = $(srcdir)/texi2dvi
|
|
|
|
TEXI2HTML = $(srcdir)/texi2html
|
|
|
|
QUIETPS = #set this to -q to shut up dvips
|
2000-03-19 21:18:09 +00:00
|
|
|
PAPERSIZE = letter
|
|
|
|
PSDPI = 300 # I don't have any 600-dpi printers
|
|
|
|
DVIPS = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@ # tricky
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
|
2000-03-19 21:18:09 +00:00
|
|
|
$(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo \
|
|
|
|
$(srcdir)/rluserman.texinfo
|
1997-06-07 12:17:44 +00:00
|
|
|
HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
|
1999-05-28 01:59:23 +00:00
|
|
|
$(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
# This should be a program that converts troff to an ascii-readable format
|
|
|
|
NROFF = groff -Tascii
|
|
|
|
|
|
|
|
# This should be a program that converts troff to postscript
|
|
|
|
GROFF = groff
|
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
DVIOBJ = readline.dvi history.dvi rluserman.dvi
|
|
|
|
INFOOBJ = readline.info history.info rluserman.info
|
2001-04-11 02:33:07 +00:00
|
|
|
PSOBJ = readline.ps history.ps rluserman.ps readline_3.ps history_3.ps
|
2000-03-19 21:18:09 +00:00
|
|
|
HTMLOBJ = readline.html history.html rluserman.html
|
2001-04-11 02:33:07 +00:00
|
|
|
TEXTOBJ = readline.0 history.0
|
1997-06-07 12:17:44 +00:00
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
INTERMEDIATE_OBJ = rlman.dvi hist.dvi rluserman.dvi
|
1999-05-28 01:59:23 +00:00
|
|
|
|
2001-04-11 02:33:07 +00:00
|
|
|
DIST_DOCS = $(DVIOBJ) $(PSOBJ) $(HTMLOBJ) $(INFOOBJ) $(TEXTOBJ)
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .0 .3 .ps .txt .dvi
|
|
|
|
|
|
|
|
.3.0:
|
|
|
|
$(RM) $@
|
|
|
|
-${NROFF} -man $< > $@
|
|
|
|
|
|
|
|
all: info dvi html ps text
|
|
|
|
nodvi: info html text
|
|
|
|
|
|
|
|
readline.dvi: $(RLSRC)
|
|
|
|
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texinfo
|
|
|
|
mv rlman.dvi readline.dvi
|
|
|
|
|
|
|
|
readline.info: $(RLSRC)
|
|
|
|
$(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texinfo
|
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
rluserman.dvi: $(RLSRC)
|
|
|
|
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texinfo
|
|
|
|
|
|
|
|
rluserman.info: $(RLSRC)
|
|
|
|
$(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texinfo
|
|
|
|
|
1997-06-07 12:17:44 +00:00
|
|
|
history.dvi: ${HISTSRC}
|
|
|
|
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/hist.texinfo
|
|
|
|
mv hist.dvi history.dvi
|
|
|
|
|
|
|
|
history.info: ${HISTSRC}
|
|
|
|
$(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/hist.texinfo
|
|
|
|
|
|
|
|
readline.ps: readline.dvi
|
|
|
|
$(RM) $@
|
|
|
|
$(DVIPS) readline.dvi
|
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
rluserman.ps: rluserman.dvi
|
|
|
|
$(RM) $@
|
|
|
|
$(DVIPS) rluserman.dvi
|
|
|
|
|
1997-06-07 12:17:44 +00:00
|
|
|
history.ps: history.dvi
|
|
|
|
$(RM) $@
|
|
|
|
$(DVIPS) history.dvi
|
|
|
|
|
2003-08-31 17:55:46 +00:00
|
|
|
#
|
|
|
|
# This leaves readline.html and rlman.html -- rlman.html is for www.gnu.org
|
|
|
|
#
|
1997-06-07 12:17:44 +00:00
|
|
|
readline.html: ${RLSRC}
|
1999-05-28 01:59:23 +00:00
|
|
|
$(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
|
2000-03-19 21:18:09 +00:00
|
|
|
sed -e 's:rlman.html:readline.html:g' rlman.html > readline.html
|
1997-06-07 12:17:44 +00:00
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
rluserman.html: ${RLSRC}
|
|
|
|
$(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texinfo
|
|
|
|
|
1997-06-07 12:17:44 +00:00
|
|
|
history.html: ${HISTSRC}
|
1999-05-28 01:59:23 +00:00
|
|
|
$(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
|
2000-03-19 21:18:09 +00:00
|
|
|
sed -e 's:hist.html:history.html:g' hist.html > history.html
|
1999-05-28 01:59:23 +00:00
|
|
|
$(RM) hist.html
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
info: $(INFOOBJ)
|
|
|
|
dvi: $(DVIOBJ)
|
|
|
|
ps: $(PSOBJ)
|
|
|
|
html: $(HTMLOBJ)
|
|
|
|
text: $(TEXTOBJ)
|
|
|
|
|
1998-04-28 06:22:20 +00:00
|
|
|
readline.0: readline.3
|
1997-06-07 12:17:44 +00:00
|
|
|
|
2001-04-11 02:33:07 +00:00
|
|
|
readline_3.ps: readline.3
|
|
|
|
${RM} $@
|
|
|
|
${GROFF} -man < $(srcdir)/readline.3 > $@
|
|
|
|
|
|
|
|
history.0: history.3
|
|
|
|
|
|
|
|
history_3.ps: history.3
|
|
|
|
${RM} $@
|
|
|
|
${GROFF} -man < $(srcdir)/history.3 > $@
|
|
|
|
|
1997-06-07 12:17:44 +00:00
|
|
|
clean:
|
|
|
|
$(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
|
2003-08-31 17:55:46 +00:00
|
|
|
*.fns *.kys *.tps *.vrs *.bt *.bts *.o core *.core
|
1997-06-07 12:17:44 +00:00
|
|
|
|
2003-08-31 17:55:46 +00:00
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean maybe-clean
|
1999-05-28 01:59:23 +00:00
|
|
|
$(RM) $(INTERMEDIATE_OBJ)
|
1998-04-28 06:22:20 +00:00
|
|
|
$(RM) Makefile
|
1997-06-07 12:17:44 +00:00
|
|
|
|
2003-08-31 17:55:46 +00:00
|
|
|
maybe-clean:
|
|
|
|
-if test "X$(topdir)" != "X$(BUILD_DIR)"; then \
|
|
|
|
$(RM) $(DIST_DOCS); \
|
|
|
|
fi
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
maintainer-clean: clean
|
2001-04-11 02:33:07 +00:00
|
|
|
$(RM) $(DIST_DOCS)
|
1999-05-28 01:59:23 +00:00
|
|
|
$(RM) $(INTERMEDIATE_OBJ)
|
1998-04-28 06:22:20 +00:00
|
|
|
$(RM) Makefile
|
1997-06-07 12:17:44 +00:00
|
|
|
|
2000-03-19 21:18:09 +00:00
|
|
|
installdirs: $(topdir)/support/mkdirs
|
2003-08-31 17:55:46 +00:00
|
|
|
-$(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir)
|
|
|
|
-if test -n "${htmldir}" ; then \
|
|
|
|
$(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(htmldir) ; \
|
|
|
|
fi
|
1997-06-07 12:17:44 +00:00
|
|
|
|
1999-05-28 01:59:23 +00:00
|
|
|
install: installdirs
|
|
|
|
if test -f readline.info; then \
|
2003-08-31 17:55:46 +00:00
|
|
|
${INSTALL_DATA} readline.info $(DESTDIR)$(infodir)/readline.info; \
|
1999-05-28 01:59:23 +00:00
|
|
|
else \
|
2003-08-31 17:55:46 +00:00
|
|
|
${INSTALL_DATA} $(srcdir)/readline.info $(DESTDIR)$(infodir)/readline.info; \
|
1999-05-28 01:59:23 +00:00
|
|
|
fi
|
2000-03-19 21:18:09 +00:00
|
|
|
if test -f rluserman.info; then \
|
2003-08-31 17:55:46 +00:00
|
|
|
${INSTALL_DATA} rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
|
2000-03-19 21:18:09 +00:00
|
|
|
else \
|
2003-08-31 17:55:46 +00:00
|
|
|
${INSTALL_DATA} $(srcdir)/rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
|
2000-03-19 21:18:09 +00:00
|
|
|
fi
|
1999-05-28 01:59:23 +00:00
|
|
|
if test -f history.info; then \
|
2003-08-31 17:55:46 +00:00
|
|
|
${INSTALL_DATA} history.info $(DESTDIR)$(infodir)/history.info; \
|
1999-05-28 01:59:23 +00:00
|
|
|
else \
|
2003-08-31 17:55:46 +00:00
|
|
|
${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/history.info; \
|
1999-05-28 01:59:23 +00:00
|
|
|
fi
|
2000-03-19 21:18:09 +00:00
|
|
|
-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
2003-08-31 17:55:46 +00:00
|
|
|
install-info --dir-file=$(DESTDIR)$(infodir)/dir \
|
|
|
|
$(DESTDIR)$(infodir)/readline.info ; \
|
|
|
|
install-info --dir-file=$(DESTDIR)$(infodir)/dir \
|
|
|
|
$(DESTDIR)$(infodir)/history.info ; \
|
|
|
|
install-info --dir-file=$(DESTDIR)$(infodir)/dir \
|
|
|
|
$(DESTDIR)$(infodir)/rluserman.info ; \
|
1997-06-07 12:17:44 +00:00
|
|
|
else true; fi
|
2003-08-31 17:55:46 +00:00
|
|
|
-${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/readline$(man3ext)
|
|
|
|
-${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/history$(man3ext)
|
|
|
|
-if test -n "${htmldir}" ; then \
|
|
|
|
if test -f readline.html; then \
|
|
|
|
${INSTALL_DATA} readline.html $(DESTDIR)$(htmldir)/readline.html; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $(srcdir)/readline.html $(DESTDIR)$(htmldir)/readline.html; \
|
|
|
|
fi ; \
|
|
|
|
if test -f history.html; then \
|
|
|
|
${INSTALL_DATA} history.html $(DESTDIR)$(htmldir)/history.html; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $(srcdir)/history.html $(DESTDIR)$(htmldir)/history.html; \
|
|
|
|
fi ; \
|
|
|
|
if test -f rluserman.html; then \
|
|
|
|
${INSTALL_DATA} rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $(srcdir)/rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
|
|
|
|
fi ; \
|
|
|
|
fi
|
1997-06-07 12:17:44 +00:00
|
|
|
|
|
|
|
uninstall:
|
2003-08-31 17:55:46 +00:00
|
|
|
$(RM) $(DESTDIR)$(infodir)/readline.info
|
|
|
|
$(RM) $(DESTDIR)$(infodir)/rluserman.info
|
|
|
|
$(RM) $(DESTDIR)$(infodir)/history.info
|
|
|
|
$(RM) $(DESTDIR)$(man3dir)/readline$(man3ext)
|
|
|
|
$(RM) $(DESTDIR)$(man3dir)/history$(man3ext)
|
|
|
|
-if test -n "${htmldir}" ; then \
|
|
|
|
$(RM) $(DESTDIR)$(htmldir)/readline.html ; \
|
|
|
|
$(RM) $(DESTDIR)$(htmldir)/rluserman.html ; \
|
|
|
|
$(RM) $(DESTDIR)$(htmldir)/history.html ; \
|
|
|
|
fi
|