[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to have dependencies on included makefiles?

From: Maxim Yegorushkin
Subject: Re: How to have dependencies on included makefiles?
Date: Wed, 16 Dec 2009 13:31:22 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4

On 26/11/09 15:29, Peng Yu wrote:
Supposed I have some makefile is included in my Makefile.

include something.makefile

There is a directory called 'some_dir' in the current directory.

I want to 'make -C some_dir' after all the rules in something.Makefile
has been executed. Is there a way to added this information in the

It can be done by organizing your dependencies in such a way that it executes `make -C some_dir` last. Something like that:

include something.makefile

all : last

last : foo
        $(MAKE) -C some_dir

foo : <depends on targets that use rules from something.makefile> 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]