diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-28 04:03:13 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-28 04:03:13 +0000 |
commit | 7eec2ccb2330b96daf6157c5f2dd5d7afc636e82 (patch) | |
tree | add85d530c4cf52fa674167a37c2e0773cd41ef5 | |
parent | 967df3d94789ce6abd73eb6f0a1d80e532cff4ca (diff) | |
download | FreeBSD-src-7eec2ccb2330b96daf6157c5f2dd5d7afc636e82.zip FreeBSD-src-7eec2ccb2330b96daf6157c5f2dd5d7afc636e82.tar.gz |
Limit testing for an up-to-date version of make(1) to the world and
buildworld targets by default, but allow it to be done for all user
targets by introducing a boolean option, named ALWAYS_CHECK_MAKE.
This change is by no means perfect and I don't even want to claim
this to be a solution. It does however address the fact that not
everybody likes to see make(1) rebuilt simply because the regression
test failed for some reason or other, including pilot error. It
therefore serves the purpose of keeping the crowd happy until we
have something better or simply reached a compromise.
The reasons for changing the default behaviour are:
o It avoids a negative, possibly non-intuitive option,
o It's according to POLA and fond of feet,
o Only buildworld is documented to do its best to be
successful at reasonably cost.
Reviewed by: gad, imp, obrien, peter
-rw-r--r-- | Makefile | 15 | ||||
-rw-r--r-- | share/man/man5/make.conf.5 | 10 |
2 files changed, 24 insertions, 1 deletions
@@ -87,9 +87,22 @@ BINMAKE= \ _MAKE= PATH=${PATH} ${BINMAKE} -f Makefile.inc1 # -# Handle the user-driven targets, using the source relative mk files. +# Make sure we have an up-to-date make(1). Only world and buildworld +# should do this as those are the initial targets used for upgrades. +# The user can define ALWAYS_CHECK_MAKE to have this check performed +# for all targets. # +.if defined(ALWAYS_CHECK_MAKE) ${TGTS} ${BITGTS}: upgrade_checks +.else +buildworld: upgrade_checks +.endif + +# +# Handle the user-driven targets, using the source relative mk files. +# + +${TGTS} ${BITGTS}: @cd ${.CURDIR}; \ ${_MAKE} ${.TARGET} diff --git a/share/man/man5/make.conf.5 b/share/man/man5/make.conf.5 index ebac979..445edca 100644 --- a/share/man/man5/make.conf.5 +++ b/share/man/man5/make.conf.5 @@ -93,6 +93,16 @@ that are used for all builds, or are used by the .Pa makefiles for things other than builds. .Bl -tag -width Ar +.It Va ALWAYS_CHECK_MAKE +.Pq Vt bool +Instructs the top-level makefile in the source tree (normally +.Pa /usr/src ) +to always check if +.Xr make 1 +is up-to-date. +Normally this is only done for the world and buildworld targets to handle +upgrades from older versions of +.Fx . .It Va CFLAGS .Pq Vt str Controls the compiler setting when compiling C code. |