Add a long needed seatbelt.

Exit with an error when make is called without a target at the top level
rather than poluting the source tree and causing use confusion in future
builds.
This commit is contained in:
Brooks Davis 2014-03-28 16:24:45 +00:00
parent 81b5ed65d7
commit 1d1b908107
2 changed files with 14 additions and 1 deletions

View File

@ -248,8 +248,19 @@ tinderbox toolchains kernel-toolchains: .MAKE
${TGTS}:
${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET}
# Set a reasonable default
# The historic default "all" target creates files which may cause stale
# or (in the cross build case) unlinkable results. Fail with an error
# when no target is given. The users can set ALLOW_IMPLICIT_TARGET or
# explicitly specify "all" if they want the historic behavior.
.ifdef ALLOW_IMPLICIT_TARGET
.MAIN: all
.else
.MAIN: _guard
_guard:
@echo "Use an explicit target or set ALLOW_IMPLICIT_TARGET"
@false
.endif
STARTTIME!= LC_ALL=C date
CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0s ; echo

View File

@ -7,6 +7,8 @@
#include "zutil.h"
#include <machine/cherireg.h>
#define local static
local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));