he make install target dir is representationed by var : DESTDIR, if we set this var to the location which we want to installed to, then we can have the build result installed accrodingly.
export DESTDIR=/INSTALL/DIR
make install
or
make DESTDIR=/install/directory install
In the ./configure file ,we can use --prefix to specify the installation directory. see as follows:
./configure --prefix=/pathToInstall
we can use ./configure --help in the teminal, and the path parameter indicate the install path.
./configure --help
网友评论