Date: Wed, 23 Apr 2003 13:15:04 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: giva AT bgnett DOT no Message-Id: <8971-Wed23Apr2003131504+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <115901c3090a$0f41cf80$0600000a@broadpark.no> (giva@bgnett.no) Subject: Re: temp file not deleted References: <115901c3090a$0f41cf80$0600000a AT broadpark DOT no> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Gisle Vanem" > Date: Tue, 22 Apr 2003 22:02:10 +0200 > > I have a Makefile that generates dependencies to > a 'depend.dj' file in two steps. Here's the relevant section: An important piece of info that I miss: what does your environment and/or Makefile specify as the SHELL? Is it 4DOS, Bash, COMMAND.COM, or something else? > depend: > $(CC) -MM $(CFLAGS) $(SOURCE) | \ > sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' > depend.dj > > $(CC) -MM $(CFLAGS) $(SPECIAL_SRC) -Dheader=\"fesupp.h\" | \ > sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/'$(OBJ_DIR)'\/\1/' >> depend.dj > > (the empty line is intentional; makes it more readable) > > I wonder why make creates *two* temp files at the same time; > i.e $(TMP)/DJ100000 and $(TMP)/DJ200000 before the 2nd $(CC) > command is run. One is for the pipe emulation, the other I don't know. If you remove the empty line, does that change anything? > And a '$(TMP)/vdm1a7a.tmp' file is also present. This one is not ours; I'm guessing it comes from 4DOS or from Windows.