Makefile and csh...?
Ivan S. Leung
isl at fmi.uunet.uu.net
Fri May 31 01:31:38 AEST 1991
In article <1991May21.210000.15284 at 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 at uunet.uu.net
More information about the Comp.unix.programmer
mailing list