From aa0affc7e73120ad3e6611db8737828cddf37991 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 29 Jun 2021 15:00:10 +0200 Subject: [PATCH] pkg: like plugins now try to error on missing replacements --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 84fc42201..6b22f54aa 100644 --- a/Makefile +++ b/Makefile @@ -33,9 +33,11 @@ CORE_NICKNAME?= Not Yet CORE_NAME?= opnsense-devel CORE_TYPE?= development -CORE_ABI?= 21.1 -CORE_PHP?= 74 -CORE_PYTHON?= 37 +.for REPLACEMENT in ABI PHP PYTHON +. if empty(CORE_${REPLACEMENT}) +. error Cannot build without CORE_${REPLACEMENT} set +. endif +.endfor _CORE_NEXT= ${CORE_ABI:C/\./ /} .if ${_CORE_NEXT:[2]} == 7