This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Problems getting dependencies compiled before executable....
>>> "Assar" == Assar Westerlund <assar@kth.se> writes:
[...]
Assar> bar/libbar.la:
Assar> cd bar && $(MAKE) libbar.la
Unless you declare this rule as PHONY (or list all the
dependencies of bar/libbar.la and the dependencies thereof) this
introduces a bug in the case the library already exists. Your
program will be linked to the old library, and then the library
will be rebuilt when make enter the subdirectory as part of the
SUBDIRS recursion.
--
Alexandre Duret-Lutz