LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Closed Thread
 
Search this Thread
Old 12-21-2010, 02:06 PM   #1
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 545

Rep: Reputation: 30
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

Last edited by R00ts; 12-21-2010 at 02:18 PM. Reason: Incorrect forum
 
Old 12-21-2010, 02:18 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 12-21-2010, 02:19 PM   #3
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 545

Original Poster
Rep: Reputation: 30
Ah, that's right. Brilliant, thanks mate!
 
Old 12-22-2010, 03:48 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 429Reputation: 429Reputation: 429Reputation: 429Reputation: 429
As per post #1, closed.
 
  


Closed Thread

Tags
makefile


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script to install list of packages in a file jayasekar Linux - Software 4 01-22-2010 01:56 AM
how to install rpm packages of the same version in multiple locations bvpurandare Linux - General 2 03-18-2009 04:14 PM
Rtirq script install locations?? stratotak Linux - Newbie 0 02-25-2009 12:39 AM
NFS/FTP locations for suse 10.1 network install dcraft Linux - General 1 07-24-2006 07:03 PM
install perl File::List module on sarge cccc Debian 1 05-31-2006 06:43 AM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration