Subject: Re: running make from wrksrc?
To: Julio Merino <jmmv@menta.net>
From: Rasputin <rasputin@idoru.mine.nu>
List: tech-pkg
Date: 06/14/2003 12:33:38
* Julio Merino <jmmv@menta.net> [0632 09:32]:
> On Fri, 13 Jun 2003 16:09:27 -0700 (PDT)
> "Jeremy C. Reed" <reed@reedmedia.net> wrote:
> 
> > On Fri, 13 Jun 2003, Rasputin wrote:
> > 
> > > do-install:
> > > 	make install prefix=${PREFIX}
> > >
> > > causes an infinite loop. How can I cd to WRKSRC before running
> > > make?

> > Use "cd" :)
> > 
> > cd ${WRKSRC} && ${MAKE} install prefix=${PREFIX}
 
> That is wrong anyway, because you are forgetting a lot of things bsd.pkg.mk
> cares about (i.e., MAKE_ENV, package debug level, etc).
> 
> Instead, just do:
> 
> MAKE_ENV+=	prefix="${PREFIX}"
> 
> (as said in another mail).  That should work just fine without a do-install
> target.

Nope, it just merrily throws everything into /usr/local and laughs
at me. Although I know that *should* work.

It's send-pr'ed as pkg/21878 if you fancy a game of
'spot the deliberate mistake'. Thanks for all the help.


-- 
There is hopeful symbolism in the fact that flags do not wave in a vacuum.
		-- Arthur C. Clarke
Rasputin :: Jack of All Trades - Master of Nuns