From 97b25ceb2e63955a9da4a8e6126f33bda21f6e9d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 5 Sep 2017 15:27:15 +0200 Subject: 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. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3