From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Possible bug in DJGPP port of GNU make Date: Mon, 06 Mar 2000 15:23:04 +0000 Organization: Customer of Planet Online Lines: 52 Message-ID: NNTP-Posting-Host: modem-131.california.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news8.svr.pol.co.uk 952270353 24016 62.137.56.131 (5 Mar 2000 15:32:33 GMT) NNTP-Posting-Date: 5 Mar 2000 15:32:33 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I think there is a bug in make, but it could just be my bad usage. Can someone please say if the test makefiles below should work ok with the DJGPP port. The bug appears in the DJGPP ports 3.77 and 3.78.1, but not 3.77 running under Linux. To demonstrate, there are 3 makefiles and 2 sub-directories: -------- makefile -------- all: cd sub1; make cd sub2; make -------- sub1\makefile -------- test1: touch test1 -------- sub2\makefile -------- test2: touch test2 Here's what happens when make is run: D:\Tmp>make cd sub1; make make.exe[1]: Entering directory `d:/tmp/sub1' touch test1 make.exe[1]: Leaving directory `d:/tmp/sub1' cd sub2; make make.exe: *** [all] Error -1 The problem does not exist if make recursion is done correctly: -------- makefile -------- all: $(MAKE) -C sub1 $(MAKE) -C sub2 D:\Tmp>make d:/djgpp/bin/make.exe -C sub1 make.exe[1]: Entering directory `d:/tmp/sub1' touch test1 make.exe[1]: Leaving directory `d:/tmp/sub1' d:/djgpp/bin/make.exe -C sub2 make.exe[1]: Entering directory `d:/tmp/sub2' touch test2 make.exe[1]: Leaving directory `d:/tmp/sub2'