[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting the target of an implicit rule within the rule
From: |
Paul D. Smith |
Subject: |
Re: Getting the target of an implicit rule within the rule |
Date: |
Mon, 26 Jul 2004 12:37:13 -0400 |
%% Ronald Landheer-Cieslak <address@hidden> writes:
rl> %.d : $(srcdir)/$(subst .d,.c,$@)
rl> blah
rl> $@, however, is empty here (as the docs duely indicate).
Why not just use the obvious:
%.d : $(srcdir)/%.c
? That's what pattern rules are for, after all...
--
-------------------------------------------------------------------------------
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