From 26f2d921dc3a3d545c0bf274c4643ee3ae53a8b7 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Tue, 4 Jan 2022 09:53:56 +0100 Subject: [PATCH] Check for build dependencies. --- package.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.mk b/package.mk index f93ed9d..1d90c03 100644 --- a/package.mk +++ b/package.mk @@ -36,7 +36,12 @@ srcdir => source_directory ignore_build_deps ?= false keep_build_env ?= false +# Do not try to install dependencies when there is none. +ifeq ("$(build-dependencies)", "") +install_build_dependencies ?= +else install_build_dependencies ?= check_build_dependencies +endif check_build_dependencies: @echo -e "\033[1;35;47mbuild-dependencies: $(build-dependencies)\033[0m" $(Q)[ "$(ignore_build_deps)" != "false" ] && echo "ignoring" || install-packages $(build-dependencies)