bug-make
[Top][All Lists]
Advanced

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

Re: False positive "doesn't match the target pattern" error


From: Masahiro Yamada
Subject: Re: False positive "doesn't match the target pattern" error
Date: Sun, 21 Aug 2022 09:35:05 +0900

On Sun, Aug 21, 2022 at 12:48 AM Dmitry Goncharov
<dgoncharov@users.sf.net> wrote:
>
> On Sat, Aug 20, 2022 at 11:36 AM Alejandro Colomar
> <alx.manpages@gmail.com> wrote:
> >  Why does make(1) need to special-case a leading ./ ?
>
> If your makefile has a rule like
> foo.x: foo.z; cp $< $@
> then make foo.x and make ./foo.x both produce the same file.
>
> regards, Dmitry




This happens only for leading './'.


'foo' and '././././foo' are the same.




Make considers 'foo/bar' and 'foo/./bar'
as different targets.





-- 
Best Regards
Masahiro Yamada



reply via email to

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