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/



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to