www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/22/01:12:22

Date: Mon, 22 Apr 1996 08:07:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: j DOT aldrich6 AT genie DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: [Q:] Recursive make ??
In-Reply-To: <199604211817.AA143600669@relay1.geis.com>
Message-Id: <Pine.SUN.3.91.960422080348.16254B-100000@is>
Mime-Version: 1.0

On Sun, 21 Apr 1996 j DOT aldrich6 AT genie DOT com wrote:

> >default all verif clean depend install:
> >	cd FirstDir
> >	make $@
> >	cd ..
> >	cd SecondDir
> >	make $@
> >	cd ..
> 
> That's very odd... according to what the Make docs say, that shouldn't
> work.  Oh, well.

That's because under Unix, each line is executed by another instance of 
the shell.  And since on Unix the current working directory is local to 
the program, putting a cd on a line by itself does nothing: once the 
shell that did the cd returns you are back in your previous directory.  
Under MS-DOS that is not so.

- Raw text -


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