Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!metro!foetus.syd.sgi.oz.au!peterk From: peterk@foetus.syd.sgi.oz.au (Peter Kerney) Newsgroups: comp.sys.sgi Subject: Using 'csh' in Makefiles Keywords: csh make Message-ID: <1990Oct3.225237.4562@foetus.syd.sgi.oz.au> Date: 3 Oct 90 22:52:37 GMT Reply-To: peterk@syd.sgi.oz.au (Peter Kerney) Organization: Silcon Graphics, Sydney, Australia Lines: 35 Hi there everyone, This probably should go to comp.unix but anyway. Question: How do you use the C-shell in a Makefile 'make' will pass this to the shell 1 (one) line at a time and it will therefore give an error. If you use the continuation on the end of the line, 'make' will pass the line to the shelll, but the foreach statement is all on one line and will therefore not work either. Example: ------------------------------ Makefile ------------------------------ test: foreach i (1 2) echo "===== $i =====" end ---------------------------------------------------------------------- We need to get the preceding Makefile working so as we can do more complex things. I have tried '\', '\n\' and all sorts of things on the end of the line but no luck yet. Any help would be gratefully accepted. Taa, PeterK -- Peter Kerney. Silicon Graphics, Sydney, Australia. (peterk@syd.sgi.oz.au) If you can't have an IRIS at home, have the next best thing, an Amiga !!!