Bug 216839 - man page: document BSDmakefile for make
Summary: man page: document BSDmakefile for make
Status: Closed Not A Bug
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Li-Wen Hsu
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-02-06 04:28 UTC by Iblis Lin
Modified: 2022-02-08 07:34 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iblis Lin 2017-02-06 04:28:49 UTC
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
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2022-02-08 07:34:14 UTC
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.