Date: Wed, 14 Oct 2015 15:09:55 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r289334 - head/share/mk Message-ID: <561ED2B3.4030909@FreeBSD.org> In-Reply-To: <201510142030.t9EKUWNY089355@repo.freebsd.org> References: <201510142030.t9EKUWNY089355@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0hsEibXHIorXP6jVuu9g7sgsWqkN8RRk1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/14/2015 1:30 PM, Bryan Drewery wrote: > Author: bdrewery > Date: Wed Oct 14 20:30:32 2015 > New Revision: 289334 > URL: https://svnweb.freebsd.org/changeset/base/289334 >=20 > Log: > Recurse on 'buildconfig' and 'installconfig'. Remove the 'config' ps= eudo target. > =20 > The 'config' target isn't really needed right now so just remove it t= o avoid > any clashes with config(8) building. It's also likely misspelled and= should > be 'configs' if we decide to add it back. This was just a convenienc= e > target recently added. > =20 > Sponsored by: EMC / Isilon Storage Division >=20 > Modified: > head/share/mk/bsd.subdir.mk >=20 > Modified: head/share/mk/bsd.subdir.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/share/mk/bsd.subdir.mk Wed Oct 14 20:28:15 2015 (r289333) > +++ head/share/mk/bsd.subdir.mk Wed Oct 14 20:30:32 2015 (r289334) > @@ -32,9 +32,10 @@ > .if !target(__<bsd.subdir.mk>__) > __<bsd.subdir.mk>__: > =20 > -ALL_SUBDIR_TARGETS=3D all all-man checkdpadd clean cleandepend cleandi= r \ > - cleanilinks cleanobj depend distribute lint maninstall \ > - manlint obj objlink realinstall regress tags \ > +ALL_SUBDIR_TARGETS=3D all all-man buildconfig checkdpadd clean cleande= pend \ > + cleandir cleanilinks cleanobj depend distribute \ > + installconfig lint maninstall manlint obj objlink \ > + realinstall regress tags \ > ${SUBDIR_TARGETS} > =20 > .include <bsd.init.mk> > @@ -127,7 +128,7 @@ _sub.${__target}: _SUBDIR > # This is to support 'make includes' calling 'make buildincludes' and > # 'make installincludes' in the proper order, and to support these > # targets as SUBDIR_TARGETS. > -.for __target in files includes config > +.for __target in files includes > .for __stage in build install > ${__stage}${__target}: > .if make(${__stage}${__target}) >=20 So the reason I have been tinkering with this code is because it is so mysterious to me, given the lack of comments and seemingly out-of-place nature of it. It turns out that even moving 'buildconfig' as a recurse target creates a surprising situation that will break with parallel builds since 'buildconfig' is hooked into 'all', thus 'all' and 'buildconfig' both end up recursing when calling 'make all'. This explains the make() check here to avoid recursing if called with 'all' (even though it is checking the opposite, only calling 'buildconfig' directly to recurse). Comments are not a sin. --=20 Regards, Bryan Drewery --0hsEibXHIorXP6jVuu9g7sgsWqkN8RRk1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJWHtK0AAoJEDXXcbtuRpfPLwQH/2PmES4tpfH80FS1guIBBdn5 rChwywAaBCo4ZVYYsmdJdT6zrvuW7FgGj+H5MsFH7Mo0WbJRiJnwuwP3cGgqQN6j FU9e8ae+Vm0g51yM/qzi43r5xPBHTj65X++Ccfe9pgXmUl1GPql9bMQZAkQPgIQv CLwIuRSYcDl/0xBfPBx4rKm/UW1Uz/iesMBuGHDwcVoltx53LOFz5VZRV95vETou wfgWVEAqyTunA+c7bVivq+qAVJniZYo6P2DeZk3q9P+CN81VCwQR8ixwu3YNb3VR gcanYe7JMAB6Y5nDHRapmMK+rT5Yta5i7Q+LgXH1eaQD+UwPNa9QW9yHZE59/Jo= =iudd -----END PGP SIGNATURE----- --0hsEibXHIorXP6jVuu9g7sgsWqkN8RRk1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?561ED2B3.4030909>