GNU Makefile and bash - escaping

In the recipe for the goal, I want to generate a bash script that processes command line arguments ... however the Makefile escape output speeds me up

target: deps echo "./a.out \" $ @ \ ""> wrapper.a.out

However, $ @ is of particular importance in the GNU Makefile, which messed things up.

Tried $ @ , $$ @ ... nothing works.

So what is the right way to do this?

+5
source share
1 answer
echo './a.out "$$@"' >wrapper.a.out

$, make. echo, , echo, $@.

+5

All Articles