help-make
[Top][All Lists]
Advanced

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

Re: %/ in pattern rule doesn't match './'


From: Paul D. Smith
Subject: Re: %/ in pattern rule doesn't match './'
Date: Wed, 6 Nov 2002 20:41:28 -0500

%% gk <address@hidden> writes:

  g> I am using 'find -type d' to get a list of directories, which the
  g> 'find' command precedes with './' I know I could work around my
  g> problem by replacing '.' with $(CURDIR) but I do not understand why
  g> the following pattern rule is not invoked

  g> -include ./SOURCES.mk

Because make normalizes filenames like "./foo" to just "foo" internally,
so that things like this DTRT:

  bar: foo

  ./foo:
        @echo $@

-- 
-------------------------------------------------------------------------------
 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




reply via email to

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