diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-09-05 15:27:15 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-09-12 15:08:53 +0200 |
commit | 97b25ceb2e63955a9da4a8e6126f33bda21f6e9d (patch) | |
tree | 2acb5a23a76c83d6c488584802e0363218fe2305 /Makefile | |
parent | e4a1c1d08bb04c4d79a6957dd52c51852dafae19 (diff) | |
download | mupdf-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-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |