Re: git: 021fcd36af22 - main - games/coffeebreak: Move man pages to share/man
Date: Sun, 10 Mar 2024 20:40:44 UTC
Hello Mathieu, Thanks for explanation! Now I can understand MAKE_ARGS and MAKE_ENV better. Cheers, Mathieu Arnold <mat@freebsd.org> escreveu (domingo, 10/03/2024 à(s) 20:31): > > On Sun, Mar 10, 2024 at 08:33:55PM +0300, Vladimir Druzenko wrote: > > 10.03.2024 18:55, Alexey Dokuchaev пишет: > > > On Sun, Mar 10, 2024 at 10:47:07AM +0000, Nuno Teixeira wrote: > > > > (...) > > > > > > > > Works fine: > > > > > > > > +MAKE_ARGS= PREFIX=${PREFIX} MANDIR=${STAGEDIR}${PREFIX}/share/man > > > > > > > > What do you think? This way it is nicely simplified without patch or sed. > > > Yes, this is what I had in mind. > > > > > > ./danfe > > > > I tested same for other ports - doesn't work if Makefile have line: > > MANDIR= XXX but work if it have: MANDIR?= XXX > > Variables passed as arguments will override variables set with = or ?= > Variables in the environemnt will override variables set with ?= > > $ cat Makefile > BAR?=bar > FOO=foo > > all: > @echo "${BAR} - ${FOO}" > $ make > bar - foo > $ make FOO=foo2 BAR=bar2 > bar2 - foo2 > $ env FOO=foo2 BAR=bar2 make > bar2 - foo > $ gmake > bar - foo > $ gmake FOO=foo2 BAR=bar2 > bar2 - foo2 > $ env FOO=foo2 BAR=bar2 gmake > bar2 - foo > > -- > Mathieu Arnold -- Nuno Teixeira FreeBSD Committer (ports)