Hello folks.

I have a question regarding parenthesis
in GNU-make macros. Like in:

  msg = @echo "$(1)"

  ptest_1:
        $(call msg, foo (arg1, arg2, arg3))

  ptest_2:
        $(call msg, foo, arg1, arg2, arg3)

--------------------

A 'make ptest_1' shows:
  foo (arg1, arg2, arg3)

and 'make ptest_2' shows:
  foo

as I'd expect since the macro takes only one arg.

So does a "foo (arg1, arg2, arg3)" becomes one
argument due to the parenthesis or something?

I find this parsing a bit strange and inconsistent;
like a comma has no meaning in 'ptest_1'. I did not
find this "issue" in the manual.

GNU Make 4.3.90
Built for Windows32

--
--gv

Reply via email to