]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure files are created during the build when using bsd.subdir.mk.
authorjmmv <jmmv@FreeBSD.org>
Mon, 9 Jun 2014 14:36:49 +0000 (14:36 +0000)
committerjmmv <jmmv@FreeBSD.org>
Mon, 9 Jun 2014 14:36:49 +0000 (14:36 +0000)
commit12a7a792952c2b9d5937ed180b55073879c7aa93
treecf1ecd4a1c83d28dab9d789b23f13519fc671aa4
parent20dd7d19969dd412d730a011d0c0c3d7a126f42b
Ensure files are created during the build when using bsd.subdir.mk.

When FILES is defined in a Makefile that _also_ includes bsd.subdir.mk, the
build of the files (if any) was not properly triggered during the build
stage.  This was because bsd.files.mk did not define the buildfiles target
if it was already defined... and bsd.subdir.mk defined this target on its
own, thus causing a conflict.

Fix this by unconditionally defining buildfiles from bsd.files.mk; this is
safe because nothing else in the tree needs to redefine this and because the
target itself contains no commands: all it does is define dependencies.
Also ensure that bsd.files.mk is always pulled in by bsd.test.mk regardless
of what bsd.prog.mk does.

These fixes allow "make installworld" to run cleanly on a system with
read-only src and obj trees.

This is "make tinderbox" clean.

Reviewed by: imp
Obtained from: jilles
share/mk/bsd.files.mk
share/mk/bsd.test.mk