Is there a way to get a list of filenames/paths that make install
copies to the filesystem? Some packages come with a MANIFEST file, but not the ones that I am working with.
By default, ' make install ' installs the package's commands under /usr/local/bin , include files under /usr/local/include , etc. You can specify an installation prefix other than /usr/local by giving configure the option --prefix= prefix , where prefix must be an absolute file name.
The files which are installed are controlled by the install target in the Makefile being used. Your best bet is to open the Makefile and search for 'install:' - from there you can see what files will be copied out to your system.
The last step – make install – copies the binaries into their final locations, might delete intermediates, and does any other step the make step didn't catch. make clean is a good idea to run if you want to try compiling all over again. This doesn't usually destroy the makefile/configuration.
Show activity on this post. ./configure runs a script named "configure" in the current directory. make runs the program "make" in your path, and make install runs it again with the argument "install". Generally, the "configure" script was generated by a collection of programs known as "autotools".
I was just investigating this myself while compiling a custom version of QEMU. I used the following method to work out what was installed and where (as well as using it as a basis for a .deb file):
mkdir /tmp/installer
./configure --target-list=i386-softmmu
make
sudo make install DESTDIR=/tmp/installer
cd /tmp/installer
tree .
Tree is a utility that recursively displays the contents of a directory in a visually appealing manner - sudo apt-get install tree
for Debian / Ubuntu users
Hope that helps someone... it took me a bit of poking around to nut it out, but I found it quite a useful way of visualising what was going on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With