1999-04-16 03:34:55 +02:00
|
|
|
# This makefile for Readline library documentation is in -*- text -*- mode.
|
|
|
|
# Emacs likes it that way.
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = .:@srcdir@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
infodir = @infodir@
|
|
|
|
|
|
|
|
mandir = @mandir@
|
|
|
|
man3dir = $(mandir)/man3
|
|
|
|
|
1999-08-03 01:48:02 +02:00
|
|
|
SHELL = @MAKE_SHELL@
|
1999-04-16 03:34:55 +02:00
|
|
|
RM = rm -f
|
|
|
|
|
|
|
|
TEXINPUTDIR = $(srcdir)
|
|
|
|
|
|
|
|
MAKEINFO = makeinfo
|
|
|
|
TEXI2DVI = $(srcdir)/texi2dvi
|
|
|
|
TEXI2HTML = $(srcdir)/texi2html
|
|
|
|
QUIETPS = #set this to -q to shut up dvips
|
|
|
|
DVIPS = dvips -D 300 $(QUIETPS) -o $@ # tricky
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
|
1999-08-03 01:48:02 +02:00
|
|
|
$(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo
|
1999-04-16 03:34:55 +02:00
|
|
|
HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
|
1999-08-03 01:48:02 +02:00
|
|
|
$(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
|
1999-04-16 03:34:55 +02: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
|
|
|
|
|
|
|
|
DVIOBJ = readline.dvi history.dvi
|
|
|
|
INFOOBJ = readline.info history.info
|
|
|
|
PSOBJ = readline.ps history.ps
|
|
|
|
HTMLOBJ = readline.html history.html
|
|
|
|
HTMLTOC = readline_toc.html history_toc.html
|
|
|
|
TEXTOBJ = readline.0
|
|
|
|
|
1999-08-03 01:48:02 +02:00
|
|
|
INTERMEDIATE_OBJ = rlman.dvi hist.dvi
|
|
|
|
|
1999-04-16 03:34:55 +02:00
|
|
|
CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ) $(HTMLTOC) $(TEXTOBJ)
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
history.ps: history.dvi
|
|
|
|
$(RM) $@
|
|
|
|
$(DVIPS) history.dvi
|
|
|
|
|
|
|
|
readline.html: ${RLSRC}
|
1999-08-03 01:48:02 +02:00
|
|
|
$(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
|
|
|
|
sed -e 's:rlman.html:readline.html:' rlman.html > readline.html
|
|
|
|
$(RM) rlman.html
|
1999-04-16 03:34:55 +02:00
|
|
|
|
|
|
|
history.html: ${HISTSRC}
|
1999-08-03 01:48:02 +02:00
|
|
|
$(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
|
|
|
|
sed -e 's:hist.html:history.html:' hist.html > history.html
|
|
|
|
$(RM) hist.html
|
1999-04-16 03:34:55 +02:00
|
|
|
|
|
|
|
info: $(INFOOBJ)
|
|
|
|
dvi: $(DVIOBJ)
|
|
|
|
ps: $(PSOBJ)
|
|
|
|
html: $(HTMLOBJ)
|
|
|
|
text: $(TEXTOBJ)
|
|
|
|
|
|
|
|
readline.0: readline.3
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
|
|
|
|
*.fns *.kys *.tps *.vrs *.o core
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) $(CREATED_DOCS)
|
1999-08-03 01:48:02 +02:00
|
|
|
$(RM) $(INTERMEDIATE_OBJ)
|
1999-04-16 03:34:55 +02:00
|
|
|
$(RM) Makefile
|
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
maintainer-clean: clean
|
|
|
|
$(RM) $(CREATED_DOCS)
|
1999-08-03 01:48:02 +02:00
|
|
|
$(RM) $(INTERMEDIATE_OBJ)
|
1999-04-16 03:34:55 +02:00
|
|
|
$(RM) Makefile
|
|
|
|
|
|
|
|
installdirs: $(top_srcdir)/support/mkdirs
|
|
|
|
-$(SHELL) $(top_srcdir)/support/mkdirs $(infodir) $(man3dir)
|
|
|
|
|
1999-08-03 01:48:02 +02:00
|
|
|
install: installdirs
|
1999-04-16 03:34:55 +02:00
|
|
|
if test -f readline.info; then \
|
|
|
|
${INSTALL_DATA} readline.info $(infodir)/readline.info; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $(srcdir)/readline.info $(infodir)/readline.info; \
|
|
|
|
fi
|
|
|
|
if test -f history.info; then \
|
|
|
|
${INSTALL_DATA} history.info $(infodir)/history.info; \
|
|
|
|
else \
|
|
|
|
${INSTALL_DATA} $(srcdir)/history.info $(infodir)/history.info; \
|
|
|
|
fi
|
|
|
|
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
|
|
|
install-info --dir-file=$(infodir)/dir $(infodir)/readline.info ; \
|
|
|
|
install-info --dir-file=$(infodir)/dir $(infodir)/history.info ; \
|
|
|
|
else true; fi
|
|
|
|
-${INSTALL_DATA} $(srcdir)/readline.3 $(man3dir)/readline.3
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) $(infodir)/readline.info
|
|
|
|
$(RM) $(infodir)/history.info
|
|
|
|
$(RM) $(man3dir)/readline.3
|