By default, ‘make install’ will install into
/usr/local/bin, /usr/local/man, etc.;
that is, the installation prefix defaults to /usr/local.
You can specify an installation prefix other than /usr/local by
configure the option --prefix=PATH,
or by specifying a value for the
variable when running ‘make install’
(e.g., ‘make install prefix=PATH’).
prefix variable provides a default for
other variables used when installing bash.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files.
If you give
configure the option
--exec-prefix=PATH, ‘make install’ will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
If you would like to change the installation locations for a single run,
you can specify these variables as arguments to
‘make install exec_prefix=/’ will install
bashbug into /bin instead of the default /usr/local/bin.
If you want to see the files bash will install and where it will install
them without changing anything on your system, specify the variable
DESTDIR as an argument to
make. Its value should be the
absolute directory path you’d like to use as the root of your sample
installation tree. For example,
mkdir /fs1/bash-install make install DESTDIR=/fs1/bash-install
bash into /fs1/bash-install/usr/local/bin/bash,
the documentation into directories within
/fs1/bash-install/usr/local/share, the example loadable builtins into
/fs1/bash-install/usr/local/lib/bash, and so on.
You can use the usual
prefix variables to alter
the directory paths beneath the value of
The GNU Makefile standards provide a more complete description of these variables and their effects.