By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,934 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,934 IT Pros & Developers. It's quick & easy.

passing eval code through make to a perl script

P: n/a
mag
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?

Sep 10 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.