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
    Commented May 12, 2015 at 13:27

1 Answer 1


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 Commented May 12, 2015 at 11:15
  • So set them explicitly in shell: . /path/to/file Commented May 12, 2015 at 12:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .