| 
									
										
										
										
											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
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | # Copyright (C) 2003-2009 Free Software Foundation, Inc.
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | #   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 3 of the License, or
 | 
					
						
							|  |  |  | #   (at your option) any later version.
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | #   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.
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | #   You should have received a copy of the GNU General Public License
 | 
					
						
							|  |  |  | #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | PACKAGE = @PACKAGE_NAME@ | 
					
						
							|  |  |  | VERSION = @PACKAGE_VERSION@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 
					
						
							|  |  |  | PACKAGE_NAME = @PACKAGE_NAME@ | 
					
						
							|  |  |  | PACKAGE_STRING = @PACKAGE_STRING@ | 
					
						
							|  |  |  | PACKAGE_VERSION = @PACKAGE_VERSION@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | datarootdir = @datarootdir@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | # Support an alternate destination root directory for package building
 | 
					
						
							|  |  |  | DESTDIR = | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | mandir = @mandir@ | 
					
						
							|  |  |  | manpfx = man | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | man1ext = .1 | 
					
						
							|  |  |  | man1dir = $(mandir)/$(manpfx)1 | 
					
						
							|  |  |  | man3ext = .3 | 
					
						
							|  |  |  | man3dir = $(mandir)/$(manpfx)3 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | INSTALL = @INSTALL@ | 
					
						
							|  |  |  | INSTALL_DATA = @INSTALL_DATA@ | 
					
						
							|  |  |  | BUILD_DIR = @BUILD_DIR@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | SUPPORT_SRCDIR = $(topdir)/support | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | # bad style
 | 
					
						
							|  |  |  | RL_LIBDIR = $(topdir)/lib/readline | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # unused
 | 
					
						
							|  |  |  | TEXINDEX    = texindex | 
					
						
							|  |  |  | TEX	    = tex | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | MAKEINFO    = makeinfo | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | TEXI2DVI    = ${SUPPORT_SRCDIR}/texi2dvi | 
					
						
							|  |  |  | TEXI2HTML   = ${SUPPORT_SRCDIR}/texi2html | 
					
						
							| 
									
										
										
										
											1998-04-17 19:52:44 +00:00
										 |  |  | MAN2HTML    = ${BUILD_DIR}/support/man2html | 
					
						
							|  |  |  | HTMLPOST    = ${srcdir}/htmlpost.sh | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | INFOPOST    = ${srcdir}/infopost.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 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | PSDPI       = 600	# could be 300 if you like | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | DVIPS	    = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@	# tricky | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | TEXINPUTDIR = $(RL_LIBDIR)/doc | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | SET_TEXINPUTS = TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | # These tools might not be available; they're not required
 | 
					
						
							|  |  |  | DVIPDF	    = dvipdfm -o $@ -p ${PAPERSIZE} | 
					
						
							|  |  |  | PSPDF       = gs -sPAPERSIZE=${PAPERSIZE} -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | MKDIRS      = ${SUPPORT_SRCDIR}/mkdirs | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | HSUSER      = $(RL_LIBDIR)/doc/hsuser.texi | 
					
						
							|  |  |  | RLUSER      = $(RL_LIBDIR)/doc/rluser.texi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-11-21 20:51:19 -05:00
										 |  |  | BASHREF_FILES = $(srcdir)/bashref.texi $(srcdir)/fdl.texi $(srcdir)/version.texi | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | .SUFFIXES:	.0 .1 .3 .ms .ps .txt .dvi .html .pdf | 
					
						
							| 
									
										
										
										
											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} $< > $@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | .ps.pdf: | 
					
						
							|  |  |  | 	$(RM) $@ | 
					
						
							|  |  |  | 	-${PSPDF} $< | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .dvi.pdf: | 
					
						
							|  |  |  | 	$(RM) $@ | 
					
						
							|  |  |  | 	-${DVIPDF} $< | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | .dvi.ps: | 
					
						
							|  |  |  | 	${RM} $@ | 
					
						
							|  |  |  | 	-${DVIPS} $< | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | all: ps info dvi text html | 
					
						
							|  |  |  | nodvi: ps info text html | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | everything: all pdf | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | PSFILES = bash.ps bashbug.ps article.ps builtins.ps rbash.ps  | 
					
						
							| 
									
										
										
										
											1999-02-19 17:11:39 +00:00
										 |  |  | DVIFILES = bashref.dvi bashref.ps | 
					
						
							|  |  |  | INFOFILES = bashref.info | 
					
						
							| 
									
										
										
										
											2001-04-06 19:14:31 +00:00
										 |  |  | MAN0FILES = bash.0 bashbug.0 builtins.0 rbash.0 | 
					
						
							| 
									
										
										
										
											1999-02-19 17:11:39 +00:00
										 |  |  | HTMLFILES = bashref.html bash.html | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | PDFFILES = bash.pdf bashref.pdf article.pdf rose94.pdf | 
					
						
							| 
									
										
										
										
											1999-02-19 17:11:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ps: ${PSFILES} | 
					
						
							|  |  |  | dvi: ${DVIFILES} | 
					
						
							|  |  |  | info: ${INFOFILES} | 
					
						
							|  |  |  | text: ${MAN0FILES} | 
					
						
							|  |  |  | html: ${HTMLFILES} | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | pdf: ${PDFFILES} | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | bashref.dvi: $(BASHREF_FILES) $(HSUSER) $(RLUSER) | 
					
						
							| 
									
										
										
										
											2011-11-22 19:11:26 -05:00
										 |  |  | 	${SET_TEXINPUTS} $(TEXI2DVI) $(srcdir)/bashref.texi || { ${RM} $@ ; exit 1; } | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | bashref.info: $(BASHREF_FILES) $(HSUSER) $(RLUSER) | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	$(MAKEINFO) --no-split -I$(TEXINPUTDIR) $(srcdir)/bashref.texi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | bashref.html: $(BASHREF_FILES) $(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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | bash.info: bashref.info | 
					
						
							|  |  |  | 	${SHELL} ${INFOPOST} < $(srcdir)/bashref.info > $@ ; \
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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
										 |  |  | article.ps: article.ms | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | bashref.ps: bashref.dvi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | article.pdf: article.ps | 
					
						
							|  |  |  | bashref.pdf: bashref.dvi | 
					
						
							|  |  |  | bash.pdf: bash.ps | 
					
						
							|  |  |  | rose94.pdf: rose94.ps | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1998-04-17 19:52:44 +00:00
										 |  |  | $(MAN2HTML):	${topdir}/support/man2html.c | 
					
						
							|  |  |  | 	-( cd ${BUILD_DIR}/support ; ${MAKE} ${MFLAGS} man2html) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | mostlyclean: clean | 
					
						
							|  |  |  | 	$(RM) Makefile | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | distclean: clean maybe-clean | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	$(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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | maybe-clean: | 
					
						
							|  |  |  | 	-if test "X$(topdir)" != "X$(BUILD_DIR)"; then \
 | 
					
						
							|  |  |  | 		$(RM) ${PSFILES} ${DVIFILES} ${INFOFILES} ${MAN0FILES} ${HTMLFILES}; \
 | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | installdirs: | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | 	-$(SHELL) $(SUPPORT_SRCDIR)/mkinstalldirs $(DESTDIR)$(man1dir) | 
					
						
							|  |  |  | 	-$(SHELL) $(SUPPORT_SRCDIR)/mkinstalldirs $(DESTDIR)$(infodir) | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | 	-if test -n "$(htmldir)" ; then \
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | 		$(SHELL) $(SUPPORT_SRCDIR)/mkinstalldirs $(DESTDIR)$(htmldir) ; \
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 	fi | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | install: info installdirs bash.info | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | 	-$(INSTALL_DATA) $(srcdir)/bash.1 $(DESTDIR)$(man1dir)/bash${man1ext} | 
					
						
							|  |  |  | 	-$(INSTALL_DATA) $(srcdir)/bashbug.1 $(DESTDIR)$(man1dir)/bashbug${man1ext} | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | # uncomment the next lines to install the builtins man page
 | 
					
						
							|  |  |  | #	sed 's:bash\.1:man1/&:' $(srcdir)/builtins.1 > $${TMPDIR:-/var/tmp}/builtins.1
 | 
					
						
							|  |  |  | #	-$(INSTALL_DATA) $${TMPDIR:-/var/tmp}/builtins.1 $(DESTDIR)$(man1dir)/bash_builtins${man1ext}
 | 
					
						
							|  |  |  | #	-$(RM) $${TMPDIR:-/var/tmp}/builtins.1
 | 
					
						
							|  |  |  | 	-if test -f bash.info; then d=.; else d=$(srcdir); fi; \
 | 
					
						
							|  |  |  | 	  $(INSTALL_DATA) $$d/bash.info $(DESTDIR)$(infodir)/bash.info | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | # run install-info if it is present to update the info directory
 | 
					
						
							|  |  |  | 	if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | 		install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/bash.info; \
 | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | 	else true; fi | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | # if htmldir is set, install the html files into that directory
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | 	-if test -n "${htmldir}" ; then \
 | 
					
						
							|  |  |  | 		$(INSTALL_DATA) $(srcdir)/bash.html $(DESTDIR)$(htmldir) ; \
 | 
					
						
							|  |  |  | 		$(INSTALL_DATA) $(srcdir)/bashref.html $(DESTDIR)$(htmldir) ; \
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 	fi | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | install_builtins:	installdirs | 
					
						
							|  |  |  | 	sed 's:bash\.1:man1/&:' $(srcdir)/builtins.1 > $${TMPDIR:-/var/tmp}/builtins.1 | 
					
						
							|  |  |  | 	-$(INSTALL_DATA) $${TMPDIR:-/var/tmp}/builtins.1 $(DESTDIR)$(man1dir)/bash_builtins${man1ext} | 
					
						
							|  |  |  | 	-$(RM) $${TMPDIR:-/var/tmp}/builtins.1 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | install_everything:	install install_builtins | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | uninstall: | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | 	-$(RM) $(DESTDIR)$(man1dir)/bash${man1ext} $(DESTDIR)$(man1dir)/bashbug${man1ext} | 
					
						
							| 
									
										
										
										
											2009-01-12 13:36:28 +00:00
										 |  |  | 	-$(RM) $(DESTDIR)$(man1dir)/bash_builtins${man1ext} | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | 	$(RM) $(DESTDIR)$(infodir)/bash.info | 
					
						
							|  |  |  | 	-if test -n "$(htmldir)" ; then \
 | 
					
						
							|  |  |  | 		$(RM) $(DESTDIR)$(htmldir)/bash.html ; \
 | 
					
						
							|  |  |  | 		$(RM) $(DESTDIR)$(htmldir)/bashref.html ; \
 | 
					
						
							| 
									
										
										
										
											2000-03-17 21:46:59 +00:00
										 |  |  | 	fi | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # for use by chet
 | 
					
						
							| 
									
										
										
										
											2001-11-13 17:56:06 +00:00
										 |  |  | CREATED_FAQ = faq.news faq.news2 faq.mail faq.version | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | faq:	${CREATED_FAQ} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | faq.version:	FAQ.version FAQ | 
					
						
							|  |  |  | 	sh mkfaqvers FAQ.version > $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  | 	$(RM) $@ | 
					
						
							|  |  |  | 	cat faq.headers.news faq.version FAQ > $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | faq.news2: FAQ faq.headers.news2 faq.version | 
					
						
							|  |  |  | 	$(RM) $@ | 
					
						
							|  |  |  | 	cat faq.headers.news2 faq.version FAQ > $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | faq.mail: FAQ faq.headers.mail faq.version | 
					
						
							|  |  |  | 	$(RM) $@ | 
					
						
							|  |  |  | 	cat faq.headers.mail faq.version FAQ > $@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | inst:	bashref.texi | 
					
						
							|  |  |  | 	$(SHELL) ./mkinstall | 
					
						
							|  |  |  | 	cmp -s INSTALL ../INSTALL || mv INSTALL ../INSTALL | 
					
						
							|  |  |  | 	$(RM) INSTALL | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | posix:	bashref.texi | 
					
						
							|  |  |  | 	$(SHELL) ./mkposix | 
					
						
							| 
									
										
										
										
											2002-07-17 14:10:11 +00:00
										 |  |  | 	cmp -s POSIX ../POSIX || mv POSIX ../POSIX | 
					
						
							|  |  |  | 	$(RM) POSIX | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | rbash:	bashref.texi | 
					
						
							|  |  |  | 	$(SH) ./mkrbash | 
					
						
							|  |  |  | 	cmp -s RBASH ../RBASH || mv RBASH ../RBASH | 
					
						
							|  |  |  | 	$(RM) RBASH | 
					
						
							| 
									
										
										
										
											2001-04-06 19:14:31 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-07-27 13:29:18 +00:00
										 |  |  | xdist: pdf inst posix rbash |