[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit rules
From: |
Paul D. Smith |
Subject: |
Re: implicit rules |
Date: |
Mon, 26 Apr 2004 15:03:30 -0400 |
%% Noel Yap <address@hidden> writes:
ny> I see. You wouldn't happen to have a patch that'll allow make to
ny> use the implicit rule for the former example, would you?
Don't know which example you're talking about when you refer to "the
former example", but this:
>>> %.mk: %.mk
>>> cp $(<) $(@)
Just doesn't make sense. It's like saying:
foo.o : foo.o
How can a target depend on itself as a prerequisite? That requirement
cannot be satisfied given our current understanding of the laws of
space/time :).
You _COULD_, however, do this:
aoeu/%.mk : %.mk
cp $< $@
and then all would be right with the world. Or at least make would be
happy.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Paul D. Smith, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Paul D. Smith, 2004/04/26
- Re: implicit rules, Boris Kolpackov, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26
- Re: implicit rules, Noel Yap, 2004/04/26