Creating a new port, overriding a Makefile variable

Christian Weisgerber naddy at mips.inka.de
Tue Mar 8 21:02:18 UTC 2011


Chris Rees <utisoft at gmail.com> wrote:

> >> In the port Makefile I've tried to use MAKE_ENV= MANPREFIX=/man to
> >> override it, but it seems it's ignored.
> 
> MAKE_ARGS= -EMANPREFIX
> MAKE_ENV= MANPREFIX=/man
> 
> NB gmake doesn't have the -E flag, but the -e flag sets environment
> precedence on all variables. Sounds risky!

Just use

MAKE_ARGS= MANPREFIX=/man

Variables set on the command line override Makefile settings.
(So says POSIX.)

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de



More information about the freebsd-ports mailing list