make: tiptoe around restriction when using dev tools such as "diff"

This commit is contained in:
Franco Fichtner 2021-06-30 12:11:11 +02:00
parent e963f315eb
commit 9735174eac

View File

@ -33,11 +33,15 @@ CORE_NICKNAME?= Not Yet
CORE_NAME?= opnsense-devel
CORE_TYPE?= development
.for REPLACEMENT in ABI PHP PYTHON
. if empty(CORE_${REPLACEMENT})
. error Cannot build without CORE_${REPLACEMENT} set
. endif
.endfor
.if empty(CORE_DEVABI)
. for REPLACEMENT in ABI PHP PYTHON
. if empty(CORE_${REPLACEMENT})
. error Cannot build without CORE_${REPLACEMENT} set
. endif
. endfor
.else
CORE_ABI= ${CORE_DEVABI}
.endif
_CORE_NEXT= ${CORE_ABI:C/\./ /}
.if ${_CORE_NEXT:[2]} == 7