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, 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."

can we include src/local.mk or something for a per-src thing?
please?


.mrg.


Home | Main Index | Thread Index | Old Index