i-bash/doc/Makefile.in

259 lines
6.8 KiB
Makefile
Raw Normal View History

1996-12-23 17:02:34 +00:00
# This Makefile is for the Bash/documentation directory -*- text -*-.
2000-03-17 21:46:59 +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.
1996-12-23 17:02:34 +00:00
#
1999-02-19 17:11:39 +00:00
SHELL = @MAKE_SHELL@
1996-12-23 17:02:34 +00:00
RM = rm -f
topdir = @top_srcdir@
srcdir = @srcdir@
VPATH = .:@srcdir@
2000-03-17 21:46:59 +00:00
prefix = @prefix@
exec_prefix = @exec_prefix@
1996-12-23 17:02:34 +00:00
infodir = @infodir@
2000-03-17 21:46:59 +00:00
# set this to a directory name to have the HTML files installed
htmldir = @htmldir@
1996-12-23 17:02:34 +00:00
mandir = @mandir@
manpfx = man
man1ext = 1
man1dir = $(mandir)/$(manpfx)$(man1ext)
man3ext = 3
man3dir = $(mandir)/$(manpfx)$(man3ext)
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
BUILD_DIR = @BUILD_DIR@
# bad style
RL_LIBDIR = $(topdir)/lib/readline
# unused
TEXINDEX = texindex
TEX = tex
MAKEINFO = makeinfo
TEXI2DVI = ${topdir}/support/texi2dvi
TEXI2HTML = ${topdir}/support/texi2html
1998-04-17 19:52:44 +00:00
MAN2HTML = ${BUILD_DIR}/support/man2html
HTMLPOST = ${srcdir}/htmlpost.sh
1996-12-23 17:02:34 +00:00
QUIETPS = #set this to -q to shut up dvips
2000-03-17 21:46:59 +00:00
PAPERSIZE = letter # change to a4 for A4-size paper
PSDPI = 300 # could be 600 if you like
DVIPS = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@ # tricky
1996-12-23 17:02:34 +00:00
TEXINPUTDIR = $(RL_LIBDIR)/doc
MKDIRS = ${topdir}/support/mkdirs
# 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
HSUSER = $(RL_LIBDIR)/doc/hsuser.texinfo
RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo
1998-04-17 19:52:44 +00:00
.SUFFIXES: .0 .1 .3 .ms .ps .txt .dvi .html
1996-12-23 17:02:34 +00:00
.1.ps:
$(RM) $@
-${GROFF} -man $< > $@
.1.0:
$(RM) $@
-${NROFF} -man $< > $@
1998-04-17 19:52:44 +00:00
.1.html:
$(RM) $@
-${MAN2HTML} $< | ${HTMLPOST} > $@
1996-12-23 17:02:34 +00:00
.ms.ps:
$(RM) $@
-${GROFF} -ms $< > $@
.ms.txt:
$(RM) $@
-${NROFF} -ms $< > $@
.3.ps:
$(RM) $@
-${GROFF} -man $< > $@
.3.0:
$(RM) $@
-${NROFF} -man $< > $@
1998-04-17 19:52:44 +00:00
.3.html:
$(RM) $@
-${MAN2HTML} $< > $@
1996-12-23 17:02:34 +00:00
all: ps info dvi text html
nodvi: ps info text html
2000-03-17 21:46:59 +00:00
PSFILES = bash.ps bashbug.ps readline.ps article.ps builtins.ps rbash.ps
1999-02-19 17:11:39 +00:00
DVIFILES = bashref.dvi bashref.ps
INFOFILES = bashref.info
2000-03-17 21:46:59 +00:00
MAN0FILES = bash.0 bashbug.0 builtins.0 rbash.0 readline.0
1999-02-19 17:11:39 +00:00
HTMLFILES = bashref.html bash.html
ps: ${PSFILES}
dvi: ${DVIFILES}
info: ${INFOFILES}
text: ${MAN0FILES}
html: ${HTMLFILES}
1996-12-23 17:02:34 +00:00
bashref.dvi: $(srcdir)/bashref.texi $(HSUSER) $(RLUSER)
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/bashref.texi
bashref.ps: bashref.dvi
$(RM) $@
$(DVIPS) bashref.dvi
bashref.info: $(srcdir)/bashref.texi $(HSUSER) $(RLUSER)
$(MAKEINFO) --no-split -I$(TEXINPUTDIR) $(srcdir)/bashref.texi
bashref.html: bashref.texi $(HSUSER) $(RLUSER)
1999-02-19 17:11:39 +00:00
$(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/bashref.texi
1996-12-23 17:02:34 +00:00
2000-03-17 21:46:59 +00:00
new-bashref.dvi: $(srcdir)/new-bashref.texi $(HSUSER) $(RLUSER)
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/new-bashref.texi
new-bashref.ps: new-bashref.dvi
$(RM) $@
$(DVIPS) new-bashref.dvi
new-bashref.info: $(srcdir)/new-bashref.texi $(HSUSER) $(RLUSER)
$(MAKEINFO) --no-split -I$(TEXINPUTDIR) $(srcdir)/new-bashref.texi
1996-12-23 17:02:34 +00:00
bash.dvi: bash.texinfo $(HSUSER) $(RLUSER)
TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) bash.texinfo
bashman.ps: bash.dvi
$(RM) $@
$(DVIPS) bash.dvi
bash.txt: bash.1
bash.ps: bash.1
1998-04-17 19:52:44 +00:00
bash.html: bash.1 $(MAN2HTML)
1996-12-23 17:02:34 +00:00
bashbug.ps: bashbug.1
builtins.ps: builtins.1 bash.1
2000-03-17 21:46:59 +00:00
rbash.ps: rbash.1 bash.1
1996-12-23 17:02:34 +00:00
bash.0: bash.1
bashbug.0: bashbug.1
builtins.0: builtins.1 bash.1
2000-03-17 21:46:59 +00:00
rbash.0: rbash.1 bash.1
1996-12-23 17:02:34 +00:00
readline.0: readline.3
readline.ps: readline.3
article.ps: article.ms
1998-04-17 19:52:44 +00:00
$(MAN2HTML): ${topdir}/support/man2html.c
-( cd ${BUILD_DIR}/support ; ${MAKE} ${MFLAGS} man2html)
1999-02-19 17:11:39 +00:00
CREATED_FAQ = faq.news faq.news2 faq.mail faq.version
faq: ${CREATED_FAQ}
1996-12-23 17:02:34 +00:00
faq.version: FAQ.version FAQ
sh mkfaqvers FAQ.version > $@
2000-03-17 21:46:59 +00:00
faq.headers.mail: FAQ.headers.mail FAQ
sh mkfaqvers FAQ.headers.mail > $@
faq.headers.news: FAQ.headers.news FAQ
sh mkfaqvers FAQ.headers.news > $@
faq.headers.news2: FAQ.headers.news2 FAQ
sh mkfaqvers FAQ.headers.news2 > $@
faq.news: FAQ faq.headers.news faq.version
1996-12-23 17:02:34 +00:00
$(RM) $@
2000-03-17 21:46:59 +00:00
cat faq.headers.news faq.version FAQ > $@
1996-12-23 17:02:34 +00:00
2000-03-17 21:46:59 +00:00
faq.news2: FAQ faq.headers.news2 faq.version
1996-12-23 17:02:34 +00:00
$(RM) $@
2000-03-17 21:46:59 +00:00
cat faq.headers.news2 faq.version FAQ > $@
1996-12-23 17:02:34 +00:00
2000-03-17 21:46:59 +00:00
faq.mail: FAQ faq.headers.mail faq.version
1996-12-23 17:02:34 +00:00
$(RM) $@
2000-03-17 21:46:59 +00:00
cat faq.headers.mail faq.version FAQ > $@
1996-12-23 17:02:34 +00:00
clean:
1999-02-19 17:11:39 +00:00
$(RM) *.aux *.bak *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps \
*.pgs *.bt *.bts *.rw *.rws *.fns *.kys *.tps *.vrs *.o
${RM} core *.core
1996-12-23 17:02:34 +00:00
distclean mostlyclean: clean
$(RM) Makefile
maintainer-clean: clean
1999-02-19 17:11:39 +00:00
${RM} ${PSFILES} ${DVIFILES} ${INFOFILES} ${MAN0FILES} ${HTMLFILES}
${RM} ${CREATED_FAQ}
1996-12-23 17:02:34 +00:00
$(RM) Makefile
installdirs:
-test -d $(man1dir) || $(SHELL) ${MKDIRS} $(man1dir)
1997-09-22 20:22:27 +00:00
# uncomment the next line to create the directory for the readline man page
# -test -d $(man3dir) || $(SHELL) ${MKDIRS} $(man3dir)
1996-12-23 17:02:34 +00:00
-test -d $(infodir) || $(SHELL) ${MKDIRS} $(infodir)
2000-03-17 21:46:59 +00:00
-if [ -n "$(htmldir)" ]; then \
test -d $(htmldir) || $(SHELL) ${MKDIRS} $(htmldir) ; \
fi
1996-12-23 17:02:34 +00:00
install: info installdirs
-$(INSTALL_DATA) $(srcdir)/bash.1 $(man1dir)/bash.${man1ext}
-$(INSTALL_DATA) $(srcdir)/bashbug.1 $(man1dir)/bashbug.${man1ext}
1997-06-05 14:59:13 +00:00
# uncomment the next line to install the readline man page
# -$(INSTALL_DATA) $(srcdir)/readline.3 $(man3dir)/readline.${man3ext}
1996-12-23 17:02:34 +00:00
# uncomment the next line to install the builtins man page
1999-02-19 17:11:39 +00:00
# $(INSTALL_DATA) $(srcdir)/builtins.1 $(man1dir)/bash_builtins.${man1ext}
1997-06-05 14:59:13 +00:00
-$(INSTALL_DATA) $(srcdir)/bashref.info $(infodir)/bash.info
# run install-info if it is present to update the info directory
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
install-info --dir-file=$(infodir)/dir $(infodir)/bash.info; \
else true; fi
2000-03-17 21:46:59 +00:00
# if htmldir is set, install the html files into that directory
-if [ -n "${htmldir}" ]; then \
$(INSTALL_DATA) $(srcdir)/bash.html $(htmldir) ; \
$(INSTALL_DATA) $(srcdir)/bashref.html $(htmldir) ; \
fi
1996-12-23 17:02:34 +00:00
uninstall:
1997-06-05 14:59:13 +00:00
-$(RM) $(man1dir)/bash.${man1ext} $(man1dir)/bashbug.${man1ext}
-$(RM) $(man3dir)/readline.${man3ext}
$(RM) $(infodir)/bash.info
2000-03-17 21:46:59 +00:00
-if [ -n "$(htmldir)" ]; then \
$(RM) $(htmldir)/bash.html ; \
$(RM) $(htmldir)/bashref.html ; \
fi
1996-12-23 17:02:34 +00:00
# for use by chet
inst: bashref.texi
$(SHELL) ./mkinstall
cmp -s INSTALL ../INSTALL || mv INSTALL ../INSTALL
$(RM) INSTALL
posix: bashref.texi
$(SHELL) ./mkposix
cmp -s POSIX.NOTES ../CWRU/POSIX.NOTES || mv POSIX.NOTES ../CWRU/POSIX.NOTES
$(RM) POSIX.NOTES