[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #26887] intermediate files declared INTERMEDIATE are made PRECIOUS
From: |
Tim Brown |
Subject: |
[bug #26887] intermediate files declared INTERMEDIATE are made PRECIOUS |
Date: |
Thu, 25 Jun 2009 16:10:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 |
Follow-up Comment #1, bug #26887 (project make):
I've written, but not *thoroughly* tested the attached patch.
Forgive me, but I'm not au fait with CVS etc.
(to the extent that I can't get autoconf to work on my system)
so I'll just drop the file here and if someone wants to wrestle
me into doing this properly - get in touch.
[I've just noticed that patterns aren't handled with what I've
done, so guidance here would be appreciated]
It does seem to do the trick on my test case though:
$ make
making intermediate file foo.rr from foo.xx
cat foo.xx > foo.rr
making target file foo.qq from intermediate foo.rr
cat foo.rr > foo.qq
rm foo.rr
$ make foo.rr
making intermediate file foo.rr from foo.xx
cat foo.xx > foo.rr
$ WITH_bar=1 make
making intermediate file foo.rr from foo.xx
cat foo.xx > foo.rr
making target file foo.qq from intermediate foo.rr
cat foo.rr > foo.qq
$ WITH_INTERMEDIATE=1 make
making intermediate file foo.rr from foo.xx
cat foo.xx > foo.rr
making target file foo.qq from intermediate foo.rr
cat foo.rr > foo.qq
rm foo.rr
$ WITH_bar=1 WITH_INTERMEDIATE=1 make
making intermediate file foo.rr from foo.xx
cat foo.xx > foo.rr
making target file foo.qq from intermediate foo.rr
cat foo.rr > foo.qq
rm foo.rr
$ WITH_INTERMEDIATE=1 make foo.rr
making intermediate file foo.rr from foo.xx
cat foo.xx > foo.rr
(file #18319)
_______________________________________________________
Additional Item Attachment:
File name: Savannah.26887.gmake.implicit.c.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?26887>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/