> From: Paul Smith <[email protected]>
> Date: Wed, 10 Nov 2010 07:39:30 -0500
> Cc: [email protected]
> Reply-To: [email protected]
> 
> On Wed, 2010-11-10 at 11:41 +0200, Oleksandr Gavenko wrote:
> > >       install:
> > >               cd subdir&&  $(MAKE)
> > >
> > How about
> > 
> > instal:
> >         $(MAKE) -C subdir
> > 
> > Is this usual pattern? 
> 
> These are equivalent.  The advantage of the former is that it's portable
> to other variants of make.  The advantage of the latter is that (as long
> as you know you're using GNU make and the command is not more complex)
> you get a bit of efficiency boost by avoiding a shell invocation.

An additional advantage of the latter is that it works with non-Unix
shells as well (although most modern Windows versions support &&).

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to