%% Eli Zaretskii <[EMAIL PROTECTED]> writes:

  ez> I've verified on my system that suffix rules with prerequisites do
  ez> seem to work, as in this example:

  ez> .c.o: foo.h
  ez>   @echo $<

  ez> Assuming you have foo.c and foo.h in your directory, type "make foo.o",
  ez> and see Make echo the name "foo.c".

  ez> Is something wrong with the assertion in the docs that "suffix rules
  ez> cannot have any prerequisites"?

I seem to recall this came up before...

The thing is, they may have prerequisites but the prerequisites are
ignored.  Make, unfortunately, doesn't even give a warning.

If you touch your foo.h above, you'll see that foo.o doesn't rebuild.

So, while it's not an error it still doesn't work.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to