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:
parent
3c652febe3
commit
53ff3cef06
1 changed files with 4 additions and 0 deletions
4
Makefile
4
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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue