a Make question
jpn at teddy.UUCP
jpn at teddy.UUCP
Wed Oct 30 01:03:55 AEST 1985
In article <1596 at uwmacc.UUCP> jwp at uwmacc.UUCP (Jeffrey W Percival) writes:
>Here's a simple makefile:
>
> DIRS = d1 d2 d3 d4 d5
> depend: ; (for dir in $(DIRS); do (cd $dir; make depend); done)
>
>The problem with this is that 'make' is interpreting the $d as a null
>string,
To pass a '$' to a command, double it. i.e. the command line should be:
depend: ; (for dir in $(DIRS); do (cd $$dir; make depend); done)
More information about the Comp.unix
mailing list