Allow 'make buildenv' to work anywhere in the src tree.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery
2015-11-05 22:28:31 +00:00
parent e4fa4fafab
commit 208f108362
3 changed files with 18 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
# $FreeBSD$
.if !target(__<src.init.mk>__)
__<src.init.mk>__:
.if !target(buildenv)
buildenv: .PHONY
@env BUILDENV_DIR=${.CURDIR} ${MAKE} -C ${SRCTOP} buildenv
.endif
.endif # !target(__<src.init.mk>__)