Makefile and csh...?

Rich Salz rsalz at bbn.com
Mon Jun 3 07:33:51 AEST 1991


In <1991May21.210000.15284 at shearson.com> kaplanr at 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 at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.



More information about the Comp.unix.programmer mailing list