svn commit: r266104 - head/usr.bin/bmake

Julio Merino jmmv at freebsd.org
Thu May 15 13:31:15 UTC 2014


On May 14, 2014, at 21:27, Warner Losh <imp at FreeBSD.org> wrote:

> Author: imp
> Date: Thu May 15 01:27:24 2014
> New Revision: 266104
> URL: http://svnweb.freebsd.org/changeset/base/266104
> 
> Log:
>  Undo changes to the generated Makefile. Move tests directory to proper
>  location, including updating the test to work in the more-fragile
>  fmake -> bmake bootstrap environment.
> 
> Modified:
>  head/usr.bin/bmake/Makefile
>  head/usr.bin/bmake/Makefile.inc
[...]
> Modified: head/usr.bin/bmake/Makefile.inc
> ==============================================================================
> --- head/usr.bin/bmake/Makefile.inc	Thu May 15 01:06:27 2014	(r266103)
> +++ head/usr.bin/bmake/Makefile.inc	Thu May 15 01:27:24 2014	(r266104)
> @@ -13,5 +13,9 @@ PROG= make
> NO_SHARED?=     YES
> .endif
> 
> +.if defined(MK_TESTS) && ${MK_TESTS} != no
> +SUBDIR+= tests
> +.endif
> +

Ugh, and this broke the build when MK_TESTS=yes.  The problem is that tests/Makefile transparently includes ../Makefile.inc, which defines SUBDIR+=tests (as above)... and this is obviously invalid within the tests subdirectory.

What's your suggestion to fix this?  I can think of renaming Makefile.inc to something different to ensure that the subdirectories don't spuriously include it.	


More information about the svn-src-head mailing list