1
0
Fork 1

Make watchdog respond to new files

remotes/1715175271555336803/main
gravel 3 years ago
parent 78527fe0b9
commit 558487caef
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -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: