What’s the difference between parenthesis $() and curly bracket ${} syntax in Makefile?

There’s no difference – they mean exactly the same (in GNU Make and in POSIX make).

I think that $(round brackets) look tidier, but that’s just personal preference.

(Other answers point to the relevant sections of the GNU Make documentation, and note that you shouldn’t mix the syntaxes within a single expression)

Leave a Comment