From 105d92e0caef3940603e680a31614b216680a249 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Mon, 13 May 2024 22:40:15 +0300 Subject: [PATCH] Update vars.mk --- config/vars.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/vars.mk b/config/vars.mk index be9da7f..c9d9623 100644 --- a/config/vars.mk +++ b/config/vars.mk @@ -28,6 +28,8 @@ OS := $(shell uname) CUR_DIR := $(shell pwd) # NDK config +$(shell err() { echo "$1" && exit 1 }) +$(shell [ -d ../android-ndk ] || err "error: ndk not found") NDK_DIR := $(shell cd ../android-ndk && pwd && cd -) ifeq ($(OS),Linux)