Article View: gnu.gcc.help
Article #42225Re: Gnu Make 3.74 continues after error
From: Fergus Henderson
Date: Tue, 02 Jan 1996 00:00
Date: Tue, 02 Jan 1996 00:00
21 lines
1226 bytes
1226 bytes
sullivan@indra.com (Steve Sullivan) writes:
>I'm running gnu make 3.74 on Solaris x.86 on a pentium,
>and it continues processing the Makefile even after one the
>targets failed. It's as if I used "-k", when in fact I
>didn't. I've tried "make -S", and STILL it continues!
>
>all:
> for ii in $(DIRS); do (cd $$ii; make all); done
It is not `make' that is continuing after an error, it is the
shell command. Change that command to
for ii in $(DIRS); do (cd $$ii; make all) || exit 1; done
^^^^^^^^^
and the loop will terminate when the first error is encountered.
--
Fergus Henderson WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au PGP: finger fjh@128.250.37.3
Technical Details
Message-ID:
<9600216.25247@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<DKGysu.BDL.0.net@indra.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,462c7c3a1077a015 X-Google-Attributes: gid11318c,public From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: Gnu Make 3.74 continues after error Date: 1996/01/02 Message-ID: <9600216.25247@mulga.cs.mu.OZ.AU> X-Deja-AN: 133616622 sender: news@cs.mu.OZ.AU (CS-Usenet) references: <DKGysu.BDL.0.net@indra.com> organization: Computer Science, University of Melbourne, Australia newsgroups: gnu.gcc.help