File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 2929.clangd
3030.ccls-cache
3131sys /* /compile
32+ /src.conf
Original file line number Diff line number Diff line change 11.\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
2- .Dd August 20 , 2025
2+ .Dd September 10 , 2025
33.Dt SRC.CONF 5
44.Os
55.Sh NAME
@@ -29,8 +29,11 @@ variables that control the aspects of how the system builds.
2929.Pp
3030The default location of
3131.Nm
32- is
33- .Pa /etc/src.conf ,
32+ is the top level of the source tree, or
33+ .Pa /etc/src.conf
34+ if no
35+ .Nm
36+ is found in the source tree itself,
3437though an alternative location can be specified in the
3538.Xr make 1
3639variable
Original file line number Diff line number Diff line change 66
77.if !defined(_WITHOUT_SRCCONF)
88# Allow user to configure things that only effect src tree builds.
9+ .if exists(${SRCTOP}/src.conf)
10+ SRCCONF? = ${SRCTOP}/src.conf
11+ .else
912SRCCONF? = /etc/src.conf
13+ .endif
1014.if !empty(SRCCONF) && \
1115 (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && \
1216 !target(_srcconf_included_)
Original file line number Diff line number Diff line change 88# the rest of /usr/src, but they still always process SRCCONF even though
99# the normal mechanisms to prevent that (compiling out of tree) won't
1010# work. To ensure they do work, we have to duplicate thee few lines here.
11+ .if exists(${SRCTOP}/src.conf)
12+ SRCCONF? = ${SRCTOP}/src.conf
13+ .else
1114SRCCONF? = /etc/src.conf
15+ .endif
1216.if (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && !target(_srcconf_included_)
1317.include "${SRCCONF}"
1418_srcconf_included_ :
Original file line number Diff line number Diff line change @@ -222,8 +222,11 @@ variables that control the aspects of how the system builds.
222222.Pp
223223The default location of
224224.Nm
225- is
226- .Pa /etc/src.conf ,
225+ is the top level of the source tree, or
226+ .Pa /etc/src.conf
227+ if no
228+ .Nm
229+ is found in the source tree itself,
227230though an alternative location can be specified in the
228231.Xr make 1
229232variable
You can’t perform that action at this time.
0 commit comments