Makefiles that use build products from other Makefiles
January 11th, 2007 by Neil Mayhew No Comments »
I’ve found what I think is the best way to use build products from another Makefile (”remote dependencies”). You want two things:
- To rebuild the current target if the remote dependency has changed
- To rebuild the remote dependency whenever this is needed
For example, suppose you are writing a test program for a library, libFoo.a, and that the test program is in a subdirectory of the directory where libFoo is built. Read the rest of this post…
Posted in Techniques |