Just fonud thant make will search BSDmakefile: └─[iblis@ionic]% cat /usr/src/share/mk/sys.mk | grep -5 BSDmakefile # Tell bmake to expand -V VAR by default .MAKE.EXPAND_VARIABLES= yes # Tell bmake the makefile preference .MAKE.MAKEFILE_PREFERENCE= BSDmakefile makefile Makefile # Tell bmake to always pass job tokens, regardless of target depending on # .MAKE or looking like ${MAKE}/${.MAKE}/$(MAKE)/$(.MAKE)/make. .MAKE.ALWAYS_PASS_JOB_QUEUE= yes And here is the patch: Index: contrib/bmake/make.1 =================================================================== --- contrib/bmake/make.1 (revision 313274) +++ contrib/bmake/make.1 (working copy) @@ -60,6 +60,8 @@ makefile option is given, .Nm will try to open +.Ql Pa BSDmakefile +, .Ql Pa makefile then .Ql Pa Makefile
I think this is right, make(1) describe its default setting: .MAKE.MAKEFILE_PREFERENCE The ordered list of makefile names (default ‘makefile’, ‘Makefile’) that make will look for. And sys.mk is just overwriting this default, to add BSDmakefile, when being included.