From 6363df13421fa4598e4fdf7a56a449f2c10be7c1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 18 Feb 2024 11:01:42 +0100 Subject: [PATCH] added BYPASS_CHECK to check_root --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 11841cb..27a5a36 100644 --- a/Makefile +++ b/Makefile @@ -78,10 +78,12 @@ no_target: # Do not use this, please <3 @echo Hey you... You have to enter your target, too. Use \'install\' target for installing $(PROJECT_NAME)-core. check_root: - @if [ "$(shell id -u)" = 0 ];then\ +ifneq ($(BYPASS_CHECK),true) + @if [ "$(shell id -u)" = 0 ]; then\ echo "Do not run install rules as root.";\ exit 1;\ fi +endif install_header_core: for file in $(INCLUDE_CORE); do $(CP) -D $(DOLLAR)file -t $(INSTALL_INCLUDE)/$(PROJECT_NAME); done