Makefile
Bill Davidson
billd at celerity.UUCP
Sun Nov 13 11:35:23 AEST 1988
In article <438 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
>>Is it possible to use the inbuilt commands of the shell
>>from a makefile ? The shell is csh.
[ useful info on shell's in make deleted ]
>lines in the Makefile, using backslashes at the end of the lines to
>continue the command, so that you can put a Bourne shell construct on
>multiple lines:
> for i in $(MAKEVARIABLE); do \
> command $$i; \
> done
>which gets passed to the shell as
> /bin/sh -c "for i in <expanded Makevariable>; do command $i; done"
>The Bourne shell doesn't mind this; I don't know if the C shell does or
>not.
Csh does not like this at all.
Several keywords ("else","endif" and others), must be the FIRST words
on their input lines. Others must be the only one on their input lines.
Since make gives ONE line to the shell, this doesn't work too well.
There MUST be some reason for this but I can't begin to figure out what
it could have been.
I like csh otherwise, but this problem and the I/O redirection
problems keep me in practice with my bourne shell skills.
--Bill Davidson
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
....!{ucsd|sdcsvax}!celerity!billd
More information about the Comp.unix.wizards
mailing list