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.
This commit is contained in:
Egor Pavlovich Gorbunov 2026-01-30 10:26:43 +03:00
parent 3c652febe3
commit 53ff3cef06

View file

@ -16,7 +16,11 @@ else
endif endif
clear: clear:
ifeq ($(OS),Windows_NT)
@$(CLEAR_CMD) @$(CLEAR_CMD)
else
@if [ -t 1 ] && [ -n "$$TERM" ]; then $(CLEAR_CMD); fi 2>/dev/null || true
endif
help: clear help: clear
@echo "Schon Project Management" @echo "Schon Project Management"