tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Changing "make clean" and "make cleandir"



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 won't catch all possible cases (like symlinking /usr/obj -> /usr/src)
but it should cover all the interesting ones.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index