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:
parent
81b5ed65d7
commit
1d1b908107
13
Makefile
13
Makefile
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user