[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vpath directive with multiple '%' characters in pattern
From: |
Paul D. Smith |
Subject: |
Re: vpath directive with multiple '%' characters in pattern |
Date: |
Mon, 14 Jun 2004 15:41:57 -0400 |
%% "Robert P. J. Day" <address@hidden> writes:
rpjd> apparently, a pattern with more than one '%' is not acceptable,
rpjd> but you don't find out about this until you actually try to use
rpjd> it in a rule. wouldn't it make more sense to immediately flag
rpjd> that vpath directive as being invalid?
I'm not sure what you mean by "not acceptable"; it definitely is
acceptable. However, the second and subsequent % characters aren't
treated as patterns, they're just treated as plain "%" characters.
So, they are acceptable and they aren't invalid, and so no error can be
generated.
I agree that this is not the most transparent way for this to behave,
but that's the way it's always been and every time I think about
changing it a number of people write in to tell me they have makefiles
that rely on this behavior.
--
-------------------------------------------------------------------------------
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