Make GNU Make behave like BSD Make?

David Kelly dkelly at hiwaay.net
Wed Jul 13 14:56:52 GMT 2005


BSD make will automatically and silently include .depend if one exists
in the same directory as the Makefile. Otherwise it won't complain if
.depend is missing.

In GNU Make one must explicitly "include .depend", but if .depend does
not exist GNU Make aborts. And can't .depend as a target dependency
partly because the target won't be built until all the includes are
complete.

So my question is "Is there a way to make GNU Make handle .depend the
BSD way? And is it possible for the same Makefile to run the same way on
either BSD or GNU Makes?"

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list