delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/04/22/19:30:03

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: temp file not deleted
Date: Wed, 23 Apr 2003 00:23:23 +0100
Lines: 35
Message-ID: <3EA5CEEB.E69D898D@phekda.freeserve.co.uk>
References: <115901c3090a$0f41cf80$0600000a AT broadpark DOT no>
NNTP-Posting-Host: 62.136.93.175
Mime-Version: 1.0
X-Trace: newsg3.svr.pol.co.uk 1051053820 29915 62.136.93.175 (22 Apr 2003 23:23:40 GMT)
NNTP-Posting-Date: 22 Apr 2003 23:23:40 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Gisle Vanem wrote:
> I have a Makefile that generates dependencies to
> a 'depend.dj' file in two steps. Here's the relevant section:
> 
> SOURCE = foo.c bar.c
> SPECIAL_SRC = file1.c file2.c
> 
> 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.
> 
> GNU make 3.80 deletes dj200000 after it finishes, but dj100000
> is left in my $(TMP). And a '$(TMP)/vdm1a7a.tmp' file is also
> present.
> 
> Any clues? I'm running make in a 4DOS box under Win-XP.

What do dj100000 and vdm1a7a.tmp contain? Do their contents match the output
of a particular command? That might help debug the problem.

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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