I am soliciting advice for the best way to resolve recursive
dependencies for make. I have
somefile.o: somefile.cpp somefile.h someheader.h other.o
other.o: other.cpp other.h
someheader.h: header1.h header2.h
If I change other.h, other.o is recompiled and then somefile.o is
recompiled.
What is missing is that if I change header1.h, somefile.o is not
recompiled. I could add header1.h and header2.h to the list of
dependencies for somefile.o, but since I have a lot of dependencies,
and header1.h has its own dependencies, etc..., it is too messy to do
manually.
Question1: is there some way to trick make into paying attention to
the line 'someheader.h: header1.h header2.h' so it can
handle recursive header dependencies.
Question2: if not, can someone suggest a good tool for automatically
generating the dependency list suitable for use with GNU
tools.
Thanks,
John Hunter
_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits