Automatic dependency tracking
Andrew STUBBS
andrew.stubbs@st.com
Fri Jun 27 10:23:00 GMT 2008
Tom Tromey wrote:
> '-include', and probably order-only dependencies.
> 'ifeq' makes it a bit friendlier too, and sometimes new-style pattern
> rules (depending on details in the Makefile that I don't remember
> right now).
...
> But with order-only dependencies I would just write:
> $(all_objects): | $(generated_headers)
OK, I understand now. Presumably it would still be possible to retain
non-GNU make compatibility for build-only purposes by also providing a
regular dependency - basically just removing the bar from the above -
and then preprocessing the Makefile, like AM_CONDITIONAL?
I don't know if it's worth it though. Like Daniel said, GNU make isn't
hard to build, and other projects already require it.
Auto dependency tracking would be very nice to have though. :)
Andrew
More information about the Gdb
mailing list