Subject: Re: running make from wrksrc?
To: None <rasputin@idoru.mine.nu>
From: Julio Merino <jmmv@menta.net>
List: tech-pkg
Date: 06/14/2003 10:32:19
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.

Cheers

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/