You don't need to do a "make depend" for any reasonably current version of GCC.
If your GCC supports the "-MMD" flag, it will automatically create a ".d" file
at the
same time that it creates the ".d" file.
Then all you really need in your Makefile is:
CFLAGS += -MMD # maybe add -MP also
...
...
ifeq ($(filter clean lessclean mrproper,$(MAKECMDGOALS)),)
-include $(OBJDIR)/*.d
endif
(There's a snag if you use "distcc" and put ".o" files in a different directory
than
the source files, in which case you can add "-MF $(@:.o=.d)" to CFLAGS.)
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make