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
Makefile?

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> 

--
Max



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to