From bc4d50862c27277055cc0fa9969550036ef535a5 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 13 Apr 2026 13:08:32 +0100 Subject: watch watches all by default in Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 0b092c6..6cb4508 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,17 @@ all: reading-log.pdf watch: +ifdef TARGET while true; do \ $(MAKE) $(TARGET); \ inotifywait -qre close_write .; \ done +else + while true; do \ + $(MAKE) all; \ + inotifywait -qre close_write .; \ + done +endif reading-log.pdf: reading-log.md bibliography.bib pandoc \ -- cgit v1.2.3