Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/3/84; site teddy.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!talcott!panda!teddy!jpn
From: jpn@teddy.UUCP
Newsgroups: net.unix
Subject: Re: a Make question
Message-ID: <1519@teddy.UUCP>
Date: Tue, 29-Oct-85 10:03:55 EST
Article-I.D.: teddy.1519
Posted: Tue Oct 29 10:03:55 1985
Date-Received: Wed, 30-Oct-85 07:46:46 EST
References: <1596@uwmacc.UUCP>
Reply-To: jpn@teddy.UUCP (John P. Nelson)
Distribution: net
Organization: GenRad, Inc., Concord, Mass.
Lines: 12

In article <1596@uwmacc.UUCP> jwp@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)