1
0
Fork 1

Make watchdog respond to new files

pull/40/head
gravel 3 years ago
parent 6e5111312c
commit 8d2e9e5f66
Signed by: gravel
SSH Key Fingerprint: SHA256:p4HP49CCk4YQMkJpWJ09L8peEPQWjERtdCRAFxPfbOY

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