summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 \