home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10873 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.8 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!scott.skidmore.edu!psinntp!psinntp!ncrlnk!usglnk!usdsd1!dkowalsk
  2. From: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
  3. Newsgroups: comp.unix.questions
  4. Subject: MAKE -k option
  5. Message-ID: <1593@usdsd1.DaytonOH.NCR.COM>
  6. Date: 9 Sep 92 12:28:15 GMT
  7. Reply-To: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
  8. Distribution: world
  9. Organization: NCR USG Data Services Division
  10. Lines: 36
  11.  
  12.  
  13.  
  14.  On page 39 of "Managing Projects with MAKE" ISB 0-937-175-18-8
  15.  by Steve Talbott, he explains the -k option.
  16.  He says, when the -k is used, make will cmmpile all the components, but
  17.  not produce a new target if any component had errors.
  18.  It works just as explained, but I have one question.
  19.  
  20.  Take the following example:
  21.  
  22.    progx:  x.o  y.o  z.o
  23.  
  24.  With the -k option in effect all 3 programs (x,y,z) will compile even though
  25.  x and/or y has errors.  That way all the errors show up, not just the 1st one.
  26.  The link will be bypassed and no new progx produced.
  27.  This is all just as I want it to work.
  28.  
  29.  My problem is that when the -k option is in effect, make exits with a status
  30.  of 0 even if there were errors.
  31.  
  32.  How can I compile all the modules and get a non-zero status if any of them
  33.  had errors????
  34.  
  35.  By the way, I have several of the NUTSHELL books and highly recommend
  36.  them to others. They are the best.
  37.  
  38.  
  39. Dennis Kowalski         NCR Corporation  PCD-3                  (513) 445-1843
  40. Systems Architecture    1700 S. Patterson Blvd              VOICEplus 622-1843
  41. USG Data Services Div   Dayton, Ohio     45479
  42. Dennis.Kowalski@DaytonOH.NCR.COM
  43. -- 
  44. Dennis Kowalski         NCR Corporation  PCD-3                  (513) 445-1843
  45. Systems Architecture    1700 S. Patterson Blvd              VOICEplus 622-1843
  46. USG Data Services Div   Dayton, Ohio     45479
  47. Dennis.Kowalski@DaytonOH.NCR.COM
  48.