trailing comments prevent whitespace removal
Britton Kerin <[email protected]>
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <CAC4O8c-+3ahRCMuxfS0BzR0=Heq+iGbfodpAio5WR3rgB-S=eg@mail.gmail.com> |
I would expect make to remove trailing comments and then strip
surrounding white space from variable definitions as usual but it
seems that the comments prevent further stripping:
$ cat Makefile
# a classic var
FOO = foo
BAR = bar # and another but commented differently
echo_some_vars:
@echo "X$(FOO)X"
@echo "X$(BAR)X"
---------------------------------------------------------------------------
$ make echo_some_vars
XfooX
Xbar X