[build] Don't show any message if official tos have been accepted

This commit is contained in:
Romain Goyet
2020-03-24 22:36:50 -04:00
committed by EmilieNumworks
parent 625afcfd42
commit 964541d645

View File

@@ -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, \