[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Regarding running shell script from Makefile
From: |
gshejin |
Subject: |
RE: Regarding running shell script from Makefile |
Date: |
Mon, 14 May 2007 23:08:20 -0700 (PDT) |
Hi Dave,
Thank you very much for your input. When I am using ':=' insted of '=' every
thing works fine. Thanks again.
Cheers,
-Gautam
Dave Korn wrote:
>
> On 14 May 2007 11:03, gshejin wrote:
>
>> mkp:
>> @echo "Mkproduct..."
>> @echo "-----------------------------------------"
>> @if [ ! "$(MY_DIR)" ] ;then echo "The Atmos Directory path is not
>> set...";
>> else echo "Atmos Directory path is set" ;if
>> [ -d $(MY_DIR) ] ;then echo "$(MY_DIR) exists...Starting mkproduct..." ;
>> echo "mkproduct options:$(ARGS_MKP)";cd $(MY_DIR); mkproduct $(ARGS_MKP);
>> if
>> [ $$? -eq 0 ] ;then echo "Mkproduct ended successfully..." ;else echo
>> "Error
>> during mkproduct..." ;fi ;else echo "$(MY_DIR) does not exist" ;fi;fi
>> =================================
>>
>> In normal scenerio I will do the following thing
>> $export PATH=/myhome/tools/bin:$PATH
>> $make mkp
>>
>> This will build the third party source.
>>
>> But, my requirement is to have the PATH defined in Makefile and then just
>> run the make mkp, which should execute the shell script and other scritps
>> which are there in /myhome/tools/bin. But I am encountering the following
>> error.
>>
>> /bin/sh: line 1: mkproduct: command not found
>> Error during mkproduct...
>
> So just put
>
> export PATH:=/myhome/tools/bin:$PATH
>
> at the start of your makefile. (Note the use of ':=' instead of plain old
> '='
> is necessary).
>
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>
>
--
View this message in context:
http://www.nabble.com/Regarding-running-shell-script-from-Makefile-tf3727692.html#a10617085
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- Regarding running shell script from Makefile, gshejin, 2007/05/11
- Re: Regarding running shell script from Makefile, Paul Smith, 2007/05/11
- Re: Regarding running shell script from Makefile, gshejin, 2007/05/14
- RE: Regarding running shell script from Makefile, Dave Korn, 2007/05/14
- RE: Regarding running shell script from Makefile,
gshejin <=
- Re: Regarding running shell script from Makefile, Paul Smith, 2007/05/14
- RE: Regarding running shell script from Makefile, Dave Korn, 2007/05/14
- RE: Regarding running shell script from Makefile, Paul Smith, 2007/05/14
- Re: Regarding running shell script from Makefile, Dave Hylands, 2007/05/14
- Re: Regarding running shell script from Makefile, Eli Zaretskii, 2007/05/14
- Re: Regarding running shell script from Makefile, Dave Hylands, 2007/05/15
- RE: Regarding running shell script from Makefile, Dave Korn, 2007/05/14