• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1658
  • Last Modified:

How do you print a variable in makefile?

HI,
How do you print a variable in a makefile?
I tried
echo "${Some variable}"
and i get
*** missing separator.  Stop.

How do you use the echo command in the makefiles?
Thanks
Jamie
0
jamie_lynn
Asked:
jamie_lynn
2 Solutions
 
Anthony2000Commented:
did you try

echo $(variable)

0
 
jamie_lynnAuthor Commented:
Yes, and i get this error message

*** missing separator.  Stop.
0
 
Infinity08Commented:
Can you show the exact line you have ? "Some variable" is not what's actually there I assume :)
0
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

 
jamie_lynnAuthor Commented:
I used
echo "${ORACLE_HOME_DIR}"

Also a regular string but still the same error
echo "Printing out oracle home\n"
0
 
Infinity08Commented:
Do you have a tab at the beginning of the line ? Or have they been replaced with spaces ?
0
 
aatrish2001Commented:
check this a good article on makefile
http://mrbook.org/tutorials/make/
0
 
Infinity08Commented:
I notice you gave a B grade - that usually means that the answer wasn't complete ... Did you get it fixed ? If not, you can always ask for clarification before closing the question ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now