Subject: Re: obj dir not created (subdir sendmail/cf/cf)
To: None <tlaronde@polynum.com>
From: Jachym Holecek <freza@liberouter.org>
List: tech-toolchain
Date: 06/20/2005 17:18:16
Hello,

not having much context, but:

> #	$NetBSD: Makefile,v 1.284.2.1 2004/07/28 21:35:29 jmc Exp $
> MAKEDEV: .EXEC
> 	${_MKTARGET_CREATE}
> 	MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
> 	    NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
> 	    awk -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl > ${.TARGET}
> 
> where, IMHO, it should be:
> 
> --- /usr/src/etc/Makefile	2005-06-19 18:16:11.000000000 +0200
> +++ /var/tmp/Makefile.mod	2005-04-15 16:53:36.000000000 +0200
> @@ -155,7 +155,8 @@
>  	${_MKTARGET_CREATE}
>  	MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
>  	    NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
> -	    awk -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl > ${.TARGET}
> +	    awk -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \
> +		> ${MAKEOBJDIRPREFIX}/${.TARGET}

Wrong. You probably meant ${.OBJDIR} there, which is pointless since
the rule's PWD will already be equal .OBJDIR, iff either MAKEOBJDIRPREFIX
is set or MAKEOBJDIR is set or ${.CURDIR}/obj[.${MACHINE}] exists. One
of these conditions should be satisfied after a 'make obj' pass.

	Regards,
		-- Jachym Holecek