cshell within make

michael b maxwell michaelm at bcsaic.UUCP
Wed Jan 8 08:01:58 AEST 1986


This is on BSD 4.2 (on a Sun, v.2.0...)
I have several script files written in csh syntax that perform some tests on
files.  I would like to invoke them from within 'make.'  The problem is that
make insists on using Bourne shell...this despite the fact that the first line
in the script file is #/bin/csh, and it runs in csh fine when it is called
interactively.

I can get around this by explicitly calling /bin/csh in the Makefile each time
I want to run a script file in csh.  In other words, instead of:
	:
	check.syntax
	:
--I put in:
	:
	/bin/csh check.syntax
	:
on each line.  Obviously this is a nuisance, as well as a source of errors.
And sure, I could use Bourne shell for everything, but I happen to like csh!

Am I missing something?  Is there a variable that can be set within the
Makefile to always use /bin/csh?  Or an undocumented command line option?
-- 
Mike Maxwell
Boeing Artificial Intelligence Center
	...uw-beaver!uw-june!bcsaic!michaelm



More information about the Comp.unix mailing list