bug-make
[Top][All Lists]
Advanced

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

[bug #62929] Normalize foo/./bar


From: Dmitry Goncharov
Subject: [bug #62929] Normalize foo/./bar
Date: Mon, 22 Aug 2022 21:32:26 -0400 (EDT)

Follow-up Comment #2, bug #62929 (project make):

i compared gmake, bmake, sun make, sun dmake, sun make in svr4 mode, aix
make.

Given makefile
hello:
    @echo $@

gmake treats ./hello, ././hello, ././/hello or .//hello, as hello. $@ has
value hello.
sun make, sun dmake, sun svr4 make treat ./hello, ././hello or ././/hello as
hello. $@ has value hello.

Sun make, sun dmake and sun svr4 make all treat .//hello or .//.///.///hello
as /hello. This is clearly a bug in sun make, dmake and svr4 make.

bmake, aix make treat ./hello, ././hello, ././/hello or .//hello as different
from hello.

Given makefile
foo/bar:
    @echo $@

sun make, sun dmake, sun svr4 make treat foo/./bar, foo/././bar or
foo//.//.//bar as foo/bar. $@ has v alue foo/bar.
gmake, bmake, aix make all treat foo/./bar, foo/././bar or foo//.//.//bar as
different from foo/bar.


Given makefile
./hello:
    @echo $@

sun make, sun dmake, sun svr4 make all use ./hello rule to build hello
././hello or ././/hello and $@ has value hello.
With this makefile gmake can build ./hello, ././hello or .//.//.//hello and $@
has the value hello.
With this makefile gmake fails to build hello.

bmake, aix make build ./hello and nothing else and $@ has value ./hello.

Given makefile
foo/./bar:
    @echo $@

sun make, sun dmake, sun svr4 make all use rule foo/./bar to build foo/bar,
foo/./bar and foo//.//.//bar and $@ has value foo/bar.

With this makefile gmake can build foo/./bar and nothing else and $@ has value
foo/./bar.
bmake, aix make build foo/./bar and nothing else and $@ has value foo/./bar.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62929>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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