Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2024 21:31:19 +0100
From:      Mathieu Arnold <mat@freebsd.org>
To:        Vladimir Druzenko <vvd@freebsd.org>
Cc:        Alexey Dokuchaev <danfe@freebsd.org>,  Nuno Teixeira <eduardo@freebsd.org>, ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: 021fcd36af22 - main - games/coffeebreak: Move man pages to share/man
Message-ID:  <4knrc5ywvwupkrkzgevfpbclp3hhq5eojt6l4iigwn2w64krre@cfbbk7q6efg3>
In-Reply-To: <32f6aa31-5d2e-401f-9c2c-eec41c14e60f@freebsd.org>
References:  <202403090831.4298VJo6024021@gitrepo.freebsd.org> <Ze16dMKKJxs9IN3t@FreeBSD.org> <CAFDf7UKq-onz-dbR=pm03Ji1FHb-u81Cidohi-be-EnVvYsGUQ@mail.gmail.com> <CAFDf7UJnP66UooFnRLxnhJS_B0j3hDfc%2Bc7uwh%2BGkNXNB_xukA@mail.gmail.com> <CAFDf7UKQ9ibp=46YuZRVpK-HDkeU92HKMkjWst1-t7oSMOBggw@mail.gmail.com> <Ze3YBw8CwWTEDxYg@FreeBSD.org> <32f6aa31-5d2e-401f-9c2c-eec41c14e60f@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--o3gusvw6lbmoxlij
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 10, 2024 at 08:33:55PM +0300, Vladimir Druzenko wrote:
> 10.03.2024 18:55, Alexey Dokuchaev =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> > On Sun, Mar 10, 2024 at 10:47:07AM +0000, Nuno Teixeira wrote:
> > > (...)
> > >=20
> > > Works fine:
> > >=20
> > > +MAKE_ARGS=3D     PREFIX=3D${PREFIX} MANDIR=3D${STAGEDIR}${PREFIX}/sh=
are/man
> > >=20
> > > What do you think? This way it is nicely simplified without patch or =
sed.
> > Yes, this is what I had in mind.
> >=20
> > ./danfe
>=20
> I tested same for other ports - doesn't work if Makefile have line:
> MANDIR=3D XXX but work if it have: MANDIR?=3D XXX

Variables passed as arguments will override variables set with =3D or ?=3D
Variables in the environemnt will override variables set with ?=3D

$ cat Makefile
BAR?=3Dbar
FOO=3Dfoo

all:
        @echo "${BAR} - ${FOO}"
$ make
bar - foo
$ make FOO=3Dfoo2 BAR=3Dbar2
bar2 - foo2
$ env FOO=3Dfoo2 BAR=3Dbar2 make
bar2 - foo
$ gmake
bar - foo
$ gmake FOO=3Dfoo2 BAR=3Dbar2  =20
bar2 - foo2
$ env FOO=3Dfoo2 BAR=3Dbar2 gmake
bar2 - foo

--=20
Mathieu Arnold

--o3gusvw6lbmoxlij
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmXuGJZfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1
NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d
Qb4dpQv9GmhroAPUE4bFba4J3fa/W/t51DIW1OxZ7z/u9cNekQHB9lt1Ux9yxfLg
M8r8aUuk3Vq9FKl/g4AVrtMnRj4dM9yJSTxxGyI5uz72zIjsmuDab+BF8EdzfKqN
gFibnvptevWvoBNYqEaOOUCMhKjMZdWTu9KW0TIl4geTWrp3e+vpKhHv9TUd3St+
q+V53s9dEsU20QGjyY0Tv51J48pAcsz2VEC1m0blghunTzTdapsp7aXuTiyozQVQ
jAP1xQnJbyIaXJmp77CPAo8/EqRsUxDTSASYBDGXvyqE/zL/8MOTKOoxnjdTxUFZ
1lsXOzxN8qgPblAmPqf/HFyi8PYgyiasygYeMP2kK4/kv06Z6qVKRYqoowTDt2jv
ooNWuyh8jrZzISPlOgUBCdhJU7TQ2t5CueWWoyfzyGh5rKiVh3/KsqM6XLzBTopL
gT7dhjYCZvCdIk7N3U20rhTTJGKAvr08O3iw6Qhy5KgVXiuKUMRed1Wy/t12nFYY
XQurpWcH
=fujh
-----END PGP SIGNATURE-----

--o3gusvw6lbmoxlij--



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