Mk: allow ROOT fallback, but make sure it's there

This commit is contained in:
Franco Fichtner 2016-09-24 11:48:13 +02:00
parent 28f3f5391f
commit 12a5ac98d7
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,5 @@
all:
ROOT?= /usr/local
.for TARGET in ${TREES} ${EXTRAS}
.if "${TREES_${TARGET}}" == ""
@ -9,6 +7,9 @@ TREES_${TARGET}=${TARGET}
.endif
.if "${ROOT_${TARGET}}" == ""
.if "${ROOT}" == ""
.error "No ROOT directory set for target: ${TARGET}"
.endif
ROOT_${TARGET}=${ROOT}
.endif

View File

@ -1,4 +1,5 @@
TREES= boot etc opnsense sbin wizard www
ROOT= /usr/local
ROOT_boot= /
EXTRAS= bootstrap