Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fmi!isl From: isl@fmi.uunet.uu.net (Ivan S. Leung) Newsgroups: comp.unix.programmer Subject: Re: Makefile and csh...? Message-ID: <1991May30.153138.9768@fmi.uunet.uu.net> Date: 30 May 91 15:31:38 GMT References: <1991May21.210000.15284@shearson.com> Reply-To: isl@fmi.UUCP (Ivan S. Leung) Organization: Facsimile Marketing, Inc. Lines: 21 In article <1991May21.210000.15284@shearson.com> you write: >The simple makefile looks like this: > >SHELL = /bin/csh >CFILES = test.c > >dependencies : > cc -M $(CFILES) > deps > >When run, the computer generates: >143 kaplanr - make >cc -M test.c > deps >*** Error code 1 >make: Fatal error: Command failed for target `dependencies' You may have "set noclobber" in your .cshrc or .login files. change the command to "cc -M $(CFILES) >! deps" should fix it. It will be nice if we can do "SHELL=/bin/csh -c" but we can't. Could somebody suggest a better solution? -- Ivan Leung fmi!isl@uunet.uu.net