LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2010, 04:52 AM   #1
pampo
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
Question Importing shell script variables into makefile


Hello there,

this is probably a trivial question, but I searched and searched the Web without success.

I have a Makefile that has to include another one through 'include' directive whose path must be determined from some variables set into an external shell script, i.e.:

shell_script.sh:

export MAKEFILE_PATH=/.../.../

Makefile:

include $(MAKEFILE_PATH)/External.mak

However I did not found a solution to evaluate MAKEFILE_PATH inside the include directive.

Any suggestions?

Many thanks in advance, Matteo
 
Old 04-19-2010, 09:14 AM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
You need to export the shell variables to environment variables
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
relation between a Makefile and shell script shaiva Linux - Software 9 06-14-2012 05:54 PM
importing variables into shell script? ocicat Programming 5 08-12-2008 03:15 AM
create shell script in makefile xface66 Programming 2 05-08-2007 04:26 AM
Makefile call shell script thllgo Programming 4 12-28-2005 09:51 AM
Shell Script and makefile thomasmathew Programming 11 12-23-2003 03:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration