On Thu, 29 Sep 2011, David Holland wrote:
On Thu, Sep 29, 2011 at 08:38:59AM +0200, Alan Barrett wrote: > How would you suggest implementing a policy of never building > without objdirs? something like .if "${OBJDIR}" == "${.CURDIR}" .error "Building without objdirs" .endif
That part's easy, but how would you tell make whether or not to use that rule? The policy should be per source tree, so a global mk.conf would not be the right place for it.
Perhaps bsd.own.mk should try .-include .../mk.conf as well as .-include ${MKCONF}. ".../filename" is magic syntax understood by .include that means "try ., .., ../.., ../../.., etc."
--apb (Alan Barrett)