[Top][All Lists]

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

Macro arguments

From: Gisle Vanem
Subject: Macro arguments
Date: Tue, 9 Aug 2022 16:45:06 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hello folks.

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

  msg = @echo "$(1)"

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

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


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

and 'make ptest_2' shows:

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


reply via email to

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