Re: git: 021fcd36af22 - main - games/coffeebreak: Move man pages to share/man
- Reply: Nuno Teixeira : "Re: git: 021fcd36af22 - main - games/coffeebreak: Move man pages to share/man"
- Reply: Alexey Dokuchaev : "Re: git: 021fcd36af22 - main - games/coffeebreak: Move man pages to share/man"
- In reply to: Vladimir Druzenko : "Re: git: 021fcd36af22 - main - games/coffeebreak: Move man pages to share/man"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Mar 2024 20:31:19 UTC
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