I have a make file that executes a perl script that takes PERL as an eval.
The script executes the eval() function via an arguement to the script
like this:
target:
script $(ARGUMENT)
However when I attempt to pass something like this
make "ARGUMENT=-eval '$MYVALUE = 101'" target
the $MYVALUE gets evaluated at the command line. I've tried escaping
the "$" in $MYVALUE passing it in a $$MYVALUE, but nothing works. It
appears that $MYVALUE gets evaluated in the make as $M thus what get's
passed to the script is
scripts -eval 'YVALUE = 101' which won't work. Is there a way to pass $
variables through make without them being evaluated? |