home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / misc / 4 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.4 KB  |  46 lines

  1. Newsgroups: comp.sys.sgi.misc
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!sgiblab!smsc.sony.com!tin
  3. From: tin@smsc.sony.com (Le Tin)
  4. Subject: Re: unable to use make on SGI
  5. Message-ID: <1992Dec16.022557.4295@smsc.sony.com>
  6. Organization: Sony Microsystems Corp, San Jose, CA
  7. References: <34692@adm.brl.mil> <1992Dec16.011758.15525@sunova.ssc.gov>
  8. Date: Wed, 16 Dec 92 02:25:57 GMT
  9. Lines: 35
  10.  
  11. In article <1992Dec16.011758.15525@sunova.ssc.gov> chow@sdc1.ssc.gov writes:
  12. >Hi,
  13. >   I have tried to use make on an SGI machine.
  14. >But the syntax seems like is totally different from
  15. >other machines.  The normal dependency "making"
  16. >mechanism works fine.  But I can't do any
  17. >looping with the make.  For examples,
  18. >
  19. >for i in $(SUBDIR)"";
  20. >do
  21. >echo "$$i";
  22. >make
  23. >done
  24. >
  25. >The make always coomplains
  26. >for: command not found
  27. >
  28. >Can anyone give a hand on this?  Please.
  29. >
  30. >Ivan
  31.  
  32.   You probably need to add a definition for the macro SHELL.
  33. Added the line SHELL=/bin/sh to your makefile.  SysV make requires
  34. that macro.  Otherwise shell commands in your makefile will be
  35. executed by your login shell.  I bet you are using csh, which will
  36. not know what to do with "for"
  37.  
  38. Regards,
  39. Tin Le
  40.  
  41. -- 
  42. .----------------------------------------------------------------------
  43. . Tin Le                    Work Internet: tin@smsc.Sony.COM
  44. . Sony Microsystems
  45. . Office: (408) 944-4157     Other Internet Addr: tin@szebra.Saigon.COM
  46.