www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/21/03:44:25

Date: Sun, 21 Apr 1996 10:38:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alexander Lehmann <alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de>
Cc: djgpp AT delorie DOT com
Subject: Re: [Q:] Recursive make ??
In-Reply-To: <4l7u89$frl@rs18.hrz.th-darmstadt.de>
Message-Id: <Pine.SUN.3.91.960421103441.14512R-100000@is>
Mime-Version: 1.0

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.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019