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

Message-ID: <123601c3092a$29690250$0600000a@broadpark.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: <djgpp AT delorie DOT com>
References: <115901c3090a$0f41cf80$0600000a AT broadpark DOT no> <3EA5CEEB DOT E69D898D AT phekda DOT freeserve DOT co DOT uk>
Subject: Re: temp file not deleted
Date: Wed, 23 Apr 2003 01:51:58 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1123
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123
Reply-To: djgpp AT delorie DOT com

"Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk> said:

> > 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.

dj100000 contains the full output of the 1st sed command.
dj200000 contains the output of the 2nd sed command appended to
the first. At least AFAICS before make ended and deleted it.
vdm1a7a.tmp is zero bytes.

But problem seems to have vanished after I reordered some targets
in the makefile. The main lib target is now before the "depend:".
Weird..

--gv

- Raw text -


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