summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-09-05 15:27:15 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-09-12 15:08:53 +0200
commit97b25ceb2e63955a9da4a8e6126f33bda21f6e9d (patch)
tree2acb5a23a76c83d6c488584802e0363218fe2305 /Makefile
parente4a1c1d08bb04c4d79a6957dd52c51852dafae19 (diff)
downloadmupdf-97b25ceb2e63955a9da4a8e6126f33bda21f6e9d.tar.xz
Add 'make watch' target.
Linux specific and depends on the inotify-tools package. Will watch source and header files and rebuild mupdf when they are modified.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b9b3ced..f444ab5a 100644
--- a/Makefile
+++ b/Makefile
@@ -485,6 +485,10 @@ tarball:
# --- Clean and Default ---
+WATCH_SRCS := $(shell find include source platform -type f -name '*.[ch]')
+watch:
+ @ while ! inotifywait -q -e modify $(WATCH_SRCS) ; do time -p $(MAKE) ; done
+
java:
$(MAKE) -C platform/java