Article View: gnu.utils.bug
Article #715make 3.62 problem
From: Daniel I. Rosenblatt
Date: Wed, 02 Sep 1992 02:43
Date: Wed, 02 Sep 1992 02:43
19 lines
1366 bytes
1366 bytes
I've run across a problem with GNU make and Imake. The command sequence in imake is (typical for imake with sub-directories): for i in list_of_directories ;\ do \ (cd $$i ; echo Making all in $$i ...; \ $(MAKE) $(MFLAGS) all ); \ done This command sequence is executed via '/bin/sh -c command_sequence'. The problem is that if a non-last (from list_of_directories) sub-make aborts with an error, the sub-make reports the error but the 1st level make does not quit. The fix is to pass the -e flag to the shell which says 'exit immediately if a command exits with a nonzero exit status'. This additional flag to the shell should probably be optional based on -k being given to make (-k given to make should imply no -e to the shell). Note that Sun's version of make does pass -e to the shell, though I haven't verified that passing -k to make turns off -e to the shell. Dan Rosenblatt
Technical Details
Message-ID:
<199209021443.AA15090@lookout.it.uswc.uswest.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lookout.IT.USwc.USwest.COM!dirShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lookout.IT.USwc.USwest.COM!dir From: dir@lookout.IT.USwc.USwest.COM (Daniel I. Rosenblatt) Subject: make 3.62 problem Message-ID: <199209021443.AA15090@lookout.it.uswc.uswest.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 2 Sep 1992 02:43:17 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 20