problem running makefiles from another directory

View: New views
2 Messages — Rating Filter:   Alert me  

problem running makefiles from another directory

by Yaad Gal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
 
 
I am trying to run a makefile not from the directory it resides on, by doing so:
 
$ FULL_PATH/make FLAGS
 
I receive the error:
 
sh: no such file or directory
 
I have also tried using the relative path, but it returns the same error.
 
when I try to run the makefile from the directory it resides on, it does not return any error.
 
my OS is winXP.
 
any advice?
 
thank you.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: problem running makefiles from another directory

by Andy Rushton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yaad Gal wrote:
> Hello,
>  
>  
> I am trying to run a makefile not from the directory it resides on, by
> doing so:
>  
> $ FULL_PATH/make FLAGS

The make program is not in that directory, it is the Makefile that is.

You run make in a different directory with the -C option:

make -C $FULL_PATH FLAGS

>  
> I receive the error:
>  
> *sh: no such file or directory*
>  
> I have also tried using the relative path, but it returns the same error.
>  
> when I try to run the makefile from the directory it resides on, it does
> not return any error.
>  
> my OS is winXP.
>  
> any advice?
>  
> thank you.
>


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users