pkgsrc-Users archive

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

Re: on the topic of bmake



On Tue, 11 Dec 2007 12:11:09 -0500
George Georgalis <george%galis.org@localhost> wrote:

> Every so often I use make when I should use bmake...
> 
> Is there any particular reason the bootstrap files
> don't determine make compatibility and exec bmake $@
> as needed?
> 
> // George

Yes, because e.g. category/pkg/Makefile might contain statements
that gmake doesn't understand, causing it to bail out before including
any infrastructure stuff that could potentially do autodetection.

You could put something like the following in ~/.profile to get
similar functionality:

--8<----8<--
make() {
if pwd | grep 'pkgsrc/[^/]*/[^/]*$' > /dev/null
then
/usr/pkg/bin/bmake $@
else
/usr/bin/make $@
fi
}
--8<----8<--

Kind regards,
-Tobias




Home | Main Index | Thread Index | Old Index