From 964541d6458a4b2074aa8325bb70d9fe6473120d Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 24 Mar 2020 22:36:50 -0400 Subject: [PATCH] [build] Don't show any message if official tos have been accepted --- build/rules.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/rules.mk b/build/rules.mk index dc3dc960e..f33e07973 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -1,11 +1,15 @@ # Define standard compilation rules .PHONY: official_authorization +ifeq ($(ACCEPT_OFFICIAL_TOS),1) +official_authorization: +else official_authorization: @echo "CAUTION: You are trying to build an official NumWorks firmware." @echo "Distribution of such firmware by a third party is prohibited." @echo "Please set the ACCEPT_OFFICIAL_TOS environment variable to proceed." - @exit $(if $(filter ACCEPT_OFFICIAL_TOS,1),0,-1) + @exit -1 +endif $(eval $(call rule_for, \ AS, %.o, %.s, \