0

How can i make use of makefile exported values while running script file. I have makefile with some exported values. I am running one script file. i need to make use of variables exported in makefile when i run script file.

Used include in script file , but the command is not supported in script file. what is the solution to handle this problem?

  • Hi! Can you show relevant excerpts of what you tried, and a specific example of what you would like to achieve? – dhag May 12 '15 at 13:27
0

You can try to include in your script line like:

. /path/to/makefile

this will exec the file (makefile, make it executable) in the shell instance of your script Also you can use

source /path/to/makefile
  • But facing compilation problem of executing makefile in the shell instance where the command ifeq is used in makefile – user3932994 May 12 '15 at 11:15
  • So set them explicitly in shell: . /path/to/file – Romeo Ninov May 12 '15 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.