help-make
[Top][All Lists]
Advanced

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

RE: Passing environment variables in reciepes


From: Warlich, Christof
Subject: RE: Passing environment variables in reciepes
Date: Wed, 8 Dec 2010 14:01:36 +0100

David Boyce wrote:
> Though it doesn't matter in this case, using ";" to join lines is a
> bad and way-too-common pattern because it breaks basic make semantics.
> Normally in the case
> 
> target:
>         line 1
>         line 2
> 
> make will fail if line 1 fails. Joining lines with ";" will change
> that (unless you're using 3.82+ and running in POSIX mode). It's
> almost always preferable to join lines with "&&". Consider

Good point ...

> clean:
>         cd $(TMP_DIR) ;\
>         rm -rf *

... and an even better example ... :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]