[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Using environmnet variables in make
From: |
John Calcote |
Subject: |
RE: Using environmnet variables in make |
Date: |
Thu, 26 Feb 2009 16:08:51 -0700 |
Alan,
Try adding a backslash after the export QA... statement like this:
test:
export QA_STEP=start; \
touch ${QA_STEP};
make executes each line in a separate shell, so QA_STEP will not be set in
the shell that executes the touch statement unless you execute both commands
in the same statement.
John
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of albob
Sent: Thursday, February 26, 2009 10:28 AM
To: address@hidden
Subject: Using environmnet variables in make
Hi,
I have the following Makefile
.EXPORT_ALL_VARIABLES:
.SUFFIXES:
test:
export QA_STEP=start ;
touch ${QA_STEP};
Which I run using "gmake". This gives me:
slappy628: gmake test
export QA_STEP=qa_rtl ;
touch ;
touch: file arguments missing
Try `touch --help' for more information.
gmake: *** [test] Error 1
Can anyone tell me what I am doing wrong? No matter what I try I can not get
it to pick up on the environment variable set. Help would be much
appreciated.
Thanks
Alan
--
View this message in context:
http://www.nabble.com/Using-environmnet-variables-in-make-tp22229241p2222924
1.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
_______________________________________________
Help-make mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-make
- Using environmnet variables in make, albob, 2009/02/26
- Re: Using environmnet variables in make, Tom Browder, 2009/02/26
- RE: Using environmnet variables in make,
John Calcote <=
- Re: Using environmnet variables in make, kalyan, 2009/02/26
- RE: Using environmnet variables in make, John Calcote, 2009/02/27
- Re: Using environmnet variables in make, Tom Browder, 2009/02/27
- Re: Using environmnet variables in make, kalyan, 2009/02/28
- Re: Using environmnet variables in make, Sam Ravnborg, 2009/02/28
- Re: Using environmnet variables in make, kalyan, 2009/02/28
- Re: Using environmnet variables in make, Paul Smith, 2009/02/28
- Re: Using environmnet variables in make, David Boyce, 2009/02/28
- Re: Using environmnet variables in make, Paul Smith, 2009/02/28
- Re: Using environmnet variables in make, John Calcote, 2009/02/28