help-make
[Top][All Lists]
Advanced

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

Re: makefile used by the sub-make makefile!


From: Eli Zaretskii
Subject: Re: makefile used by the sub-make makefile!
Date: Wed, 10 Nov 2010 07:51:42 -0500

> From: Paul Smith <address@hidden>
> Date: Wed, 10 Nov 2010 07:39:30 -0500
> Cc: address@hidden
> Reply-To: address@hidden
> 
> 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 &&).



reply via email to

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