SIL LSDev Linux Development

Language software for Linux and Mac OS X

Makefiles that use build products from other Makefiles

I’ve found what I think is the best way to use build products from another Makefile (“remote dependencies”). You want two things:

  1. To rebuild the current target if the remote dependency has changed
  2. 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…