bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MAKEFLAGS support required to override prefix at install time


From: Matt Kraai
Subject: Re: MAKEFLAGS support required to override prefix at install time
Date: Tue, 21 Apr 2009 22:22:16 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Apr 22, 2009 at 07:19:49AM +0200, Ralf Wildenhues wrote:
> Hi Matt,
> 
> * Matt Kraai wrote on Tue, Apr 21, 2009 at 06:44:20PM CEST:
> > I'm trying to use Stow on an HP-UX 10.20 system.  The Stow manual
> > recommends specifying one prefix at configure time and then overriding
> > it at install time.  That is,
> > 
> >  $ ./configure --prefix=$HOME
> >  ...
> >  $ make
> >  ...
> >  $ make install prefix=$HOME/stow
> >  ...
> > 
> > When I try this, it installs files using the original prefix (i.e.,
> > $HOME), not the override (i.e., $HOME/stow).
> 
> > If I enable UNIX95 behavior in the system make (which enables support
> > for MAKEFLAGS) or use GNU Make, the prefix can be overridden at
> > install time.
> > 
> > Is there anything Automake could or should do to address this problem?
> 
> Not too much, it's a feature/limitation of HP-UX (and several other
> non-GNU) make.  You can use
>   env prefix=$HOME/stow make -e install
> 
> as a workaround, but note that this also causes other variables in your
> environment to override make macros in the makefiles, which may not be
> desirable.
> 
> Well, since Automake provides AM_MAKEFLAGS with all recursion, I guess
> you can also use
>   make install prefix=$HOME/stow AM_MAKEFLAGS=prefix=$HOME/stow
> 
> that should work as well.

Thanks for the workarounds!

-- 
Matt                                                 http://ftbfs.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]