Current-Users archive

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

Re: Where does the kernel get built?

On Tue, 29 Nov 2011, D'Arcy Cain wrote:
[ -f /etc/mk.conf ] && eval `grep MAKEOBJDIRPREFIX /etc/mk.conf|tr -d ' '`

That uses the shell to parse a line that's written in make(1) syntax. It will work in simple cases but it's not reliable. could do it properly using the getmakevar() function, but I don't think it's worth the trouble, because any MAKEOBJDIRPREFIX setting in mk.conf would still be ignored by any make process that's not launched from

--apb (Alan Barrett)

Home | Main Index | Thread Index | Old Index