ports/64037 and the alleged && -> ; failure from March 2002

Oliver Eikemeier eikemeier at fillmore-labs.com
Fri Mar 12 19:00:16 PST 2004


Kimura Fuyuki wrote:

> At Sat, 13 Mar 2004 01:28:07 +0100,
> Matthias Andree <ma at dt.e-technik.uni-dortmund.de> wrote:
> 
>>I am refuting that claim in Akinori's post.
>>'cd dir && foo' IS a proper use of && in a Makefile.
>>The whole line is a shell command and make doesn't care about the && or
>>; - it's up to the shell to handle it. (I assume make uses a sane shell
>>such as /bin/sh or ksh.)
> 
> Hm, actually I'm not an expert of the BSD make and never know the
> proper way to change directory in a Makefile. I've just blindly
> followed the knu's suggestion to use `;'. Perhaps he will tell you more.

You are free to use whatever you want, in fact bsd.port.mk has both. I
can't see much difference in the general case. They behave differently
when you use a - line or the -i option.

-Oliver



More information about the freebsd-ports mailing list