Using 'csh' in Makefiles

Peter Kerney peterk at foetus.syd.sgi.oz.au
Mon Oct 15 10:01:28 AEST 1990


>From article <9010102030.AA23475 at mcirps2.med.nyu.edu>, by karron at MCIRPS2.MED.NYU.EDU:
> 
> make takes each action line as a separate shell exec. The way
> around that is to use a backslash (\) to escape each newline. Then
> make will run the entire bunch of lines as one line.
> To change the default shell command, equate SHELL=/bin/csh in the
> makefile.
> 
This will not work. I have tried it.
The problem is that 'csh' relies on the fact that all the constructs are
on separate lines.

eg:   foreach i (*)
          echo $i
      end

This will not work in a Makefile, even with '\' at the end of the line.

-- 
Peter Kerney. Silicon Graphics, Sydney, Australia. (peterk at syd.sgi.oz.au)

If you can't have an IRIS at home,
have the next best thing, an Amiga !!!



More information about the Comp.sys.sgi mailing list