Connecting Tech Pros Worldwide Help | Site Map

passing eval code through make to a perl script

  #1  
Old September 10th, 2008, 07:15 PM
mag
Guest
 
Posts: n/a
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?

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make this page work scottyman@comcast.net answers 6 March 9th, 2006 04:25 AM