Allow to skip the tools check. This is useful for the download-sdk target.

This commit is contained in:
Guillaume BIENKOWSKI 2015-03-05 10:29:20 +01:00
parent e154c69ec6
commit 1bb1c9bb1f

View file

@ -26,13 +26,6 @@ enable_opus=yes
enable_debug=no
# Checks
CHECK_MSG=$(shell ../../Tools/check_tools.sh)
ifneq ($(CHECK_MSG),)
$(error Some tools are missing.)
endif
TUNNEL_AVAILABLE=$(shell git submodule status ../tunnel 2>/dev/null 1>/dev/null && echo yes)
ifneq ($(TUNNEL_AVAILABLE),)
@ -43,7 +36,7 @@ else
endif
.NOTPARALLEL all: check_options build warning
.NOTPARALLEL all: checks build warning
# check that the selected options are correct
CHECKOPT_MSG := ""
@ -53,6 +46,8 @@ ifeq ($(enable_gpl_third_parties)$(enable_ffmpeg),noyes)
enable_ffmpeg:=no
endif
checks: check_options check_progs
ifneq ($(CHECKOPT_MSG),"")
check_options:
@echo $(CHECKOPT_MSG)
@ -60,6 +55,25 @@ else
check_options:
endif
# you can skip the tool check by export BYPASS_TOOLCHECK=1
ifneq ($(BYPASS_TOOLCHECK),1)
# Checks
CHECK_MSG=$(shell ../../Tools/check_tools.sh)
check_progs:
ifneq ($(CHECK_MSG),)
$(error Some tools are missing.)
else
$(info All tools are present.)
endif
else
check_progs:
$(info Skipping tool checks)
endif
# setup footer
ifeq ($(enable_gpl_third_parties),yes)