Article View: comp.sys.sgi.misc
Article #3Re: unable to use make on SGI
From: Le Tin
Date: Wed, 16 Dec 1992 02:25
Date: Wed, 16 Dec 1992 02:25
35 lines
1451 bytes
1451 bytes
In article <1992Dec16.011758.15525@sunova.ssc.gov> chow@sdc1.ssc.gov writes: >Hi, > I have tried to use make on an SGI machine. >But the syntax seems like is totally different from >other machines. The normal dependency "making" >mechanism works fine. But I can't do any >looping with the make. For examples, > >for i in $(SUBDIR)""; >do >echo "$$i"; >make >done > >The make always coomplains >for: command not found > >Can anyone give a hand on this? Please. > >Ivan You probably need to add a definition for the macro SHELL. Added the line SHELL=/bin/sh to your makefile. SysV make requires that macro. Otherwise shell commands in your makefile will be executed by your login shell. I bet you are using csh, which will not know what to do with "for" Regards, Tin Le -- .---------------------------------------------------------------------- . Tin Le Work Internet: tin@smsc.Sony.COM . Sony Microsystems . Office: (408) 944-4157 Other Internet Addr: tin@szebra.Saigon.COM
Technical Details
Message-ID:
<1992Dec16.022557.4295@smsc.sony.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!sgiblab!smsc.sony.com!tinReferences:
<34692@adm.brl.mil> <1992Dec16.011758.15525@sunova.ssc.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.misc Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!sgiblab!smsc.sony.com!tin From: tin@smsc.sony.com (Le Tin) Subject: Re: unable to use make on SGI Message-ID: <1992Dec16.022557.4295@smsc.sony.com> Organization: Sony Microsystems Corp, San Jose, CA References: <34692@adm.brl.mil> <1992Dec16.011758.15525@sunova.ssc.gov> Date: Wed, 16 Dec 92 02:25:57 GMT Lines: 35