From 76d02e129281b8bc05d22127645a099d6f4b24ca Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 26 Jan 2024 13:41:44 -0500 Subject: Makefile: Watch source control files only --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f59a2a9..c645b91 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ help: # Show this help menu @printf "\n%s\n\n" "$$(grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | column -s ':#' -t)" watch: # Watch and rebuild everything - while true; do find . | entr -d -s 'make build'; done + while true; do git ls-files -cdmo --exclude-standard --exclude tests | entr -d -s 'make build'; done monitor: # Monitor for files changes inotifywait --monitor --recursive --event modify . -- cgit v1.2.3