Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 10th, 2008, 07:15 PM
mag
Guest
 
Posts: n/a
Default passing eval code through make to a perl script

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?

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles