Date: Sun, 21 Apr 1996 10:38:23 +0200 (IST) From: Eli Zaretskii To: Alexander Lehmann Cc: djgpp AT delorie DOT com Subject: Re: [Q:] Recursive make ?? In-Reply-To: <4l7u89$frl@rs18.hrz.th-darmstadt.de> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 19 Apr 1996, Alexander Lehmann wrote: > : default all verif clean depend install: > : (cd FirstSubDir; make $@) > : (cd SecondSubDir; make $@) > > The doesn't work, because under unix, the command line (cd something;make) > is processed by the unix shell (usually sh or bash) and the command.com of > DOS doesn't support such a syntax. You can do recursive makes with the > -C option, e.g. make -C FirstSubDir $@. Better still, just change those lines to something that COMMAND.COM can grok (it doesn't understand multiple commands on a single line). Try this: default all verif clean depend install: cd FirstDir make $@ cd .. cd SecondDir make $@ cd .. (You should always `cd ..' at the end, since in DOS the directory isn't restored when the sub-Make exits.)