LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-19-2006, 06:35 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
Unhappy 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.
 
Old 07-19-2006, 07:17 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Use:
Code:
( cd .. ; make )
or similar.
 
Old 07-19-2006, 07:47 PM   #3
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
it works!

thanks,
a
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to kill a Child and all its subsequent child process in C shayer009 Programming 3 12-04-2007 12:40 AM
Cannot 'make' in madwifi directory Katlyn Linux - Software 11 03-11-2006 03:44 AM
Can't make dir in home directory! lennoguard Solaris / OpenSolaris 18 02-25-2006 07:23 AM
allow user to make directory RajRed Linux - General 10 02-20-2006 09:51 PM
Killing a child process from another child marri Programming 6 10-01-2004 07:08 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration