From 53ff3cef06ad65d74690ba58e79412ce895a8946 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Fri, 30 Jan 2026 10:26:43 +0300 Subject: [PATCH] fix(Makefile): improve `clear` target for cross-platform compatibility Ensure the `clear` target works on both Windows and Unix-based systems by checking the OS and terminal settings. This update avoids errors when running in unsupported environments. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8287a553..9845e4e2 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,11 @@ else endif clear: +ifeq ($(OS),Windows_NT) @$(CLEAR_CMD) +else + @if [ -t 1 ] && [ -n "$$TERM" ]; then $(CLEAR_CMD); fi 2>/dev/null || true +endif help: clear @echo "Schon Project Management"