Andy, these only work if your package uses autoconf and automake.

On Fri, Mar 07, 2003 at 06:48:40PM +0800, Andy Sy wrote:
> When compiling source code into a temporary directory for 
> packaging, which of the following will work more often:
> 
> 
> make install prefix=/pkgdir/usr/local
> 

Every program that follows GNU coding standards for makefiles (that
essentially means every program that uses GNU Automake for its build
process) will honor this.

> or
> 
> make DESTDIR=/pkgdir install
> 

DESTDIR is also required by GNU coding standards, and hence is always
created by Automake generated makefiles.

> I've encountered one package, omniORB for which DESTDIR
> worked but prefix was ignored.  Would the reverse sometimes
> be true for some packages?

The two methods you've described should only fail if a package doesn't
follow the GNU makefile guidelines, usually because it doesn't use
automake, or it goes out of its way to do something highly unnatural in
a Makefile.am (which is absolutely crazy for anyone to do).

-- 
Rafael R. Sevilla <dido at imperium dot ph>     +63(2)8123151
Software Developer, Imperium Technology Inc.    +63(917)4458925
"Under the cloud of threatening war, it is humanity hanging from
                       a cross of iron."
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
PROTECTED]

Reply via email to