LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Getting a list of file install locations with make install? (http://www.linuxquestions.org/questions/linux-general-1/getting-a-list-of-file-install-locations-with-make-install-851641/)

R00ts 12-21-2010 02:06 PM

Getting a list of file install locations with make install?
 
EDIT: Moderator, please delete this thread. I accidentally posted it in the incorrect section. The new location for this thread is here:

http://www.linuxquestions.org/questi...05#post4199205

MS3FGX 12-21-2010 02:18 PM

Almost all Makefiles support the DESTDIR argument, which let's you install the package into a given directory. So you could do something like:

Code:

$ mkdir ./pkg
$ make install DESTDIR=./pkg

The hierarchy of the entire program would then be installed under ./pkg as if it was /. You can then use tar to package all of those files up and then deploy that on the target system. There are also tools like CheckInstall that can do similar things, but I am not sure if they are still actively maintained.

R00ts 12-21-2010 02:19 PM

Ah, that's right. Brilliant, thanks mate!

XavierP 12-22-2010 03:48 AM

As per post #1, closed.


All times are GMT -5. The time now is 09:55 PM.