home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / utils / bug / 1462 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.3 KB  |  33 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lookout.IT.USwc.USwest.COM!dir
  3. From: dir@lookout.IT.USwc.USwest.COM (Daniel I. Rosenblatt)
  4. Subject: make 3.62 problem
  5. Message-ID: <199209021443.AA15090@lookout.it.uswc.uswest.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 2 Sep 1992 02:43:17 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 20
  12.  
  13. I've run across a problem with GNU make and Imake.
  14. The command sequence in imake is (typical for imake with sub-directories):
  15.     for i in list_of_directories ;\
  16.     do \
  17.         (cd $$i ; echo Making all in $$i ...; \
  18.         $(MAKE) $(MFLAGS) all ); \
  19.     done
  20. This command sequence is executed via '/bin/sh -c command_sequence'.
  21. The problem is that if a non-last (from list_of_directories) sub-make
  22. aborts with an error, the sub-make reports the error but the 1st level
  23. make does not quit.  The fix is to pass the -e flag to the shell which
  24. says 'exit immediately if a command exits with a nonzero exit status'.
  25. This additional flag to the shell should probably be optional based on
  26. -k being given to make (-k given to make should imply no -e to the shell).
  27.  
  28. Note that Sun's version of make does pass -e to the shell, though I
  29. haven't verified that passing -k to make turns off -e to the shell.
  30.  
  31. Dan Rosenblatt
  32.  
  33.