www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/21:59:02

Message-ID: <362FF086.BDA6266C@montana.com>
Date: Thu, 22 Oct 1998 20:57:10 -0600
From: bowman <bowman AT montana DOT com>
X-Mailer: Mozilla 4.5b2 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Recursive make: portable technique?
Reply-To: djgpp AT delorie DOT com

On a straight DOS system with only command.com for a shell, make will
fail after

cd ../new_dir; $(MAKE) 

I found that doing an explicit  cd ../original_dir fixed the problem,
and there were a few exchanges about this in the archives that indicated
this was the case. 

I ran a small test using this hack with bash available, and pointed to
by SHELL, and it still seemed to work.

So, my question, is the explicit cd safe in all configurations, or will
I get burnt?

- Raw text -


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