Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 13:13:53 +0100
From:      John Marino <freebsd.contact@marino.st>
To:        lev@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   Re: How to use ${WRKDIR}, ${PREFIX} and other variables in target names?
Message-ID:  <52DBC181.4050809@marino.st>
In-Reply-To: <2310271684.20140119155418@serebryakov.spb.ru>
References:  <788996080.20140119140901@serebryakov.spb.ru> <52DBA78F.30403@marino.st> <2310271684.20140119155418@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/19/2014 12:54, Lev Serebryakov wrote:
> Hello, John.
> You wrote 19 января 2014 г., 14:23:11:
> 
> JM> Many ports carry a BSD makefile in the files subdirectory, install that
> JM> and that makefile does all the internal building.
>  Problem is, I want to use a lot f variables defined by our port system --
>  commands (like ${RM} and ${TOUCH}), environments (like ${MAKE_ENV} and
>  ${CONFIGURE_ENV}) and passing all of them to sub-make looks very
>  cumbersome, especially ${*_ENV} variables.
> 

MAKE_ENV is passed by default if the standard build target is used (and
it should be).  There should be a variable to define to indicate which
makefile to use if yours won't be in standard location.

I don't know what to do about RM and TOUCH unless you want to use
"MAKE_ENV+= RM=${RM} TOUCH=${TOUCH}" which is valid.

John



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DBC181.4050809>