bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make, suffix rules and pattern rules.


From: Paul D. Smith
Subject: Re: Make, suffix rules and pattern rules.
Date: Tue, 14 Nov 2000 22:56:33 -0500

%% Eli Zaretskii <address@hidden> 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 <address@hidden>          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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]