Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site uwmacc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!uwvax!uwmacc!jwp From: jwp@uwmacc.UUCP (Jeffrey W Percival) Newsgroups: net.unix Subject: a Make question Message-ID: <1596@uwmacc.UUCP> Date: Sun, 27-Oct-85 20:20:34 EST Article-I.D.: uwmacc.1596 Posted: Sun Oct 27 20:20:34 1985 Date-Received: Wed, 30-Oct-85 06:26:59 EST Distribution: net Organization: UWisconsin-Madison Academic Comp Center Lines: 13 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, so the 'cd' command sees an argument of "ir". I tried escaping the $ preceding dir, to no avail. Can anybody make the above loop work, or suggest a better way? Thanks! Jeff -- Jeff Percival ...!uwvax!uwmacc!jwp