diff --git a/config/vars.mk b/config/vars.mk index 1984ced..0da7e90 100644 --- a/config/vars.mk +++ b/config/vars.mk @@ -28,8 +28,7 @@ OS := $(shell uname) CUR_DIR := $(shell pwd) # NDK config -$(shell export err() { echo "$1" && exit 1; }) -$(shell [ -d ../android-ndk ] || err "error: ndk not found") +$(shell [ -d ../android-ndk ] || echo "error: ndk not found" && exit 1) NDK_DIR := $(shell cd ../android-ndk && pwd && cd -) ifeq ($(OS),Linux)