Makefile and csh...?

Gary Weimer 253-7796 weimer at garden.ssd.kodak.com
Fri May 31 07:20:09 AEST 1991


In article <1991May21.210000.15284 at shearson.com>, kaplanr at shearson.com
(Roger Kaplan) writes:
|> 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'
|> ----

If noclobber (sp?) is set and deps exists, the shell will not allow you
to overwrite it. Try changing '>' to '>!' to force an overwrite.

weimer at ssd.kodak.com ( Gary Weimer )



More information about the Comp.unix.programmer mailing list