home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12331 < prev    next >
Encoding:
Text File  |  1992-08-13  |  904 b   |  39 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!gatech!taco!pysgjb.physics.ncsu.edu!sullivan
  3. From: sullivan@pysgjb.physics.ncsu.edu (Dan Sullivan)
  4. Subject: Whitespace in Makefiles: a bug?
  5. Message-ID: <1992Aug13.120318.8791@ncsu.edu>
  6. Followup-To: comp.sys.sgi
  7. Keywords: inline comment SHELL
  8. Sender: news@ncsu.edu (USENET News System)
  9. Organization: NCSU Physics, Condensed Matter Theory
  10. Date: Thu, 13 Aug 1992 12:03:18 GMT
  11. Lines: 26
  12.  
  13. Because the make-behavior described here might trip up another, I note
  14. that whitespace at the end of a "SHELL=" line in a makefile is
  15. significant.  (I use 4.0.2 IRIX.)
  16.  
  17. For example,
  18.  
  19. # A makefile
  20. SHELL=/bin/sh 
  21. #            ^ = a space.  It could be a tab.
  22. target:
  23.     ls
  24. # end of makefile
  25.  
  26. % make
  27.     ls
  28. Couldn't load Shell: No such file or directory
  29.  
  30. Stop.
  31. *** Error code 1
  32.  
  33. Stop.
  34.  
  35. If I remove the space (or tab), all is well.  It doesn't help to end
  36. that line with a #.
  37.  
  38. Cheers,
  39.