bugmake - Bugs: bug #7575, "make -n" leaves...


bug #7575: "make -n" leaves intermediate files which are deleted without "-n"

Submitted by:  None
Submitted on:  Wed 04 Feb 2004 07:46:38 AM UTC  
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.79.1Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 04 Feb 2004 07:46:38 AM UTC, original submission:

I use a special pair of rules to autogenerate dependencies. A "pair" because there are two separate stages -- "gcc -MM" and "sed s/.../.../", and each can generate an error.

This is done with following rules (gcc>2.95, due to "-MF"):

%.d: %.dep
sed 's/$.o :/$.o $@:/' <$.dep >$@
%.dep: %.c
$(CC) -MM $(CPPFLAGS) $< -MF$@ >/dev/null

and "include $(ALLDEPENDS)" where ALLDEPENDS contains list of all .d-files.

Everything is fine -- make regenerates these .d-files upon change of .c or any of included files, and automatically removes intermediate .dep-files.

BUT: when running with "-n" switch, make still performs this .c->.dep->.d sequence (since otherwise it wouldn't be able to have an up-to-date makefile), but DOES NOT remove .dep-files. So that they remain sitting there forever.

Dmitry Yu. Bolkhovityanov, D.Yu.BolkhovityanovATinp.nsk.su
(BTW, does Savannah registration work? It tells "You are now being sent a confirmation email", but that email never reaches me...)



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Wed 06 Oct 2004 04:53:30 PM UTCpsmithCarbon-Copy-=>Added d --DOT-- yu --DOT-- bolkhovityanov --AT-- inp --DOT-- nsk --DOT-- su

Back to the top

Powered by Savane 3.1-cleanup1