On Sun, Aug 21, 2022 at 12:48 AM Dmitry Goncharov
<dgoncha...@users.sf.net> wrote:
>
> On Sat, Aug 20, 2022 at 11:36 AM Alejandro Colomar
> <alx.manpa...@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