LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   make from an child directory. (https://www.linuxquestions.org/questions/linux-general-1/make-from-an-child-directory-465690/)

ashlesha 07-19-2006 06:35 PM

make from an child directory.
 
Hi,

This is my directory structure:

Directory dir1 has the foll files/dirs:
Makefile try1/ other files

I want to execute make -f Makefile (in dir1) from a Makefile in try1 directory...

apparantly i cannot say
cd /dir1/Makefile

in Makefile in try1, as each command in the make file executes in a separate shell.

Any suggestions on how to do this?

Thanks

Ashlesha.

Matir 07-19-2006 07:17 PM

Use:
Code:

( cd .. ; make )
or similar.

ashlesha 07-19-2006 07:47 PM

it works!

thanks,
a


All times are GMT -5. The time now is 12:42 AM.