Source-Changes-D archive

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

Re: CVS commit: src/compat



On Mon, 31 Jan 2011, Matt Thomas wrote:
> +MAKEDIRTARGETENV=
> +.if defined(MAKEOBJDIRPREFIX)
> +MAKEDIRTARGETENV+=   unset MAKEOBJDIRPREFIX &&
> +.endif
> +MAKEDIRTARGETENV+=   MAKEOBJDIR='$${.CURDIR:C,^${NETBSDSRCDIR},${.OBJDIR},}'
> +MAKEDIRTARGETENV+=   MKOBJDIRS=yes MKSHARE=no
> +MAKEDIRTARGETENV+=   BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE}

I have no opinion on whether this is the right solution to whatever the
problem is, but I can say that you don't need the ".if" guard around the
"unset MAKEOBJDIRPREFIX"; unsetting a variable that was not defined is
harmless.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index