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: Paul Smith
Subject: Re: makefile used by the sub-make makefile!
Date: Wed, 10 Nov 2010 07:39:30 -0500

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.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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