summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-13 13:08:32 +0100
committerJoe Carstairs <me@joeac.net>2026-04-13 13:08:32 +0100
commitbc4d50862c27277055cc0fa9969550036ef535a5 (patch)
tree9076552633d7292014e3237f2019ce0d1b498df7
parentfde033e9440f3134f207346d79a42af9ab06d56f (diff)
watch watches all by default in Makefile
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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 \