What files did `make install` copy, and where?

后端 未结 6 631
没有蜡笔的小新
没有蜡笔的小新 2021-01-04 10:09

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

6条回答
  •  庸人自扰
    2021-01-04 10:34

    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.

提交回复
热议问题