----- Original Message -----
Re: "Advanced Auto-Dependency Generation" question
||Re: "Advanced Auto-Dependency Generation" question|
||Tue, 16 Aug 2005 23:58:47 +0300|
I don't recall many details, but...
also need to add each dependency
file on the list of prerequisites of the
respective .o file. This will
trigger rebuild of the object and
dependency file if the depenency
file is missing...
you might get a situation where unnecessary
make-runs or builds are done, just to satisfy the new dependency chains you
create, *if* make knows how to build dependency files in the first place.
I'm not sure I was clear enough, so let me illustrate my idea with an
#link object files
%.o: %.c %.d
#build dependency file
#build object file
#This rule is supposed to cause make to "imagine" that a missing
#dependency file is up-to-date and therefore it must
#rebuild all targets that depend on the missing dependency file
#I had to put a @echo command here for this rule to work
#as documented in section 4.7 of the GNU make manual.Do you now
see any cicumstancies that will cause unnecessary builds to
you see any other inefficiencies or potential problems in
suggestion is the way to go if your users may delete dependency files
Greg suggested that they should be deleted but said nothing about how
to delete them. I do not consider this a complete solution.