Check for build dependencies.

This commit is contained in:
Philippe Pittoli 2022-01-04 09:53:56 +01:00
parent c7f39d4734
commit 26f2d921dc

View File

@ -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)