This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "cd dir && $(MAKE)", not "cd dir; $(MAKE)"


On Mon, Dec 23, 2002 at 02:19:27PM -0800, Doug Evans wrote:
> Andrew Cagney writes:
>  > > 	  (cd etc; $(MAKE) $(FLAGS_TO_PASS) check)
>  > 
>  > Just FYI,
>  > 
>  > If there is no etc/, the above should barf.  This is because MAKE runs 
>  > /bin/sh -e and the unchecked `cd''s error status should cause an abort.
> 
> IF make did that, then the above would have barfed.
> Clearly in my case it didn't.
> 
> Where is the -e set?
> After configuring all I see in SHELL is /bin/sh.

It isn't, in GNU make.  Unless you put it in SHELL yourself.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]