Re: DESTDIR support

Mike Brodbelt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, 2006-12-13 at 11:23 -0500, Mike Schmidt wrote:
> Hi,
> 
> Oddly enough, Frank's method seems to work:
> 
> Instead of my original attempt, which was : edit Makefile, set 
> DESTDIR=/root/tmp, then run make install
> the second attempt:
> 
> restore Makefile
> make install INSTALL_PREFIX=/root/net-snmp
> 
> that worked. I don't understand, because the Makefile says 
> 'INSTALL_PREFIX=$(DESTDIR), so both methods should have been the same.

I tried that, and it didn't work for me :-(. I'm not entirely sure why.
I've brute forced it for now by doing it this way:-

find . -name Makefile -exec perl -p -i -e 's#^(DESTDIR[^=]*=).*#\1 /root/net-snmp#' {} \; 
make install

It's kind of evil, but it does the job...

Mike

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.