Message-ID: <115901c3090a$0f41cf80$0600000a@broadpark.no> From: "Gisle Vanem" To: "djgpp" Subject: temp file not deleted Date: Tue, 22 Apr 2003 22:02:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 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. --gv