Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!bbn.com!papaya.bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.unix.programmer Subject: Re: Makefile and csh...? Message-ID: <3605@litchi.bbn.com> Date: 2 Jun 91 21:33:51 GMT References: <1991May21.210000.15284@shearson.com> Organization: BBN Systems and Technology, Inc. Lines: 18 In <1991May21.210000.15284@shearson.com> kaplanr@shearson.com (Roger Kaplan) writes: >The simple makefile looks like this: >SHELL = /bin/csh You will live to regret this. Put SHELL=/bin/sh in your Makefiles and write your actions accordingly -- your stuff will be more portable (sort of), and you will be much less frustrated by the Cshell's idiosyncratic behavior. As to the specific problem: > cc -M $(CFILES) > deps causes the Cshell to not overwrite a file. Ignore advice telling you to put "unset noclobber" in everyone's .cshrc file. Put this line before the cc line instead: rm -f deps -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net. Use a domain-based address or give alternate paths, or you may lose out.