diff --git a/Makefile b/Makefile index 614a366..e436cda 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,10 @@ lan-server: open: xdg-open "http://localhost:$(PORT)" >/dev/null 2>/dev/null & disown -# Update HTML on file change. Doesn't check for new files. +# Update HTML on file change. watchdog: - find . | grep -v ".git" | entr -n -s "$(MAKE) html" + set -o pipefail; \ + while :; do find . | grep -v ".git" | entr -nds "$(MAKE) html" && exit; done # Remove artefacts clean: