I found watchman (https://facebook.github.io/watchman/) to be useful
in this kind of situation.

On Tue, Jan 2, 2018 at 12:17 PM, Simon Cruanes <simon.cruanes.2007@m4x.org> wrote:
I've been using a small script for the same purpose for a while now (as
a Makefile target):

watch:
        while find src/ -print0 | xargs -0 inotifywait -e delete_self -e modify ; do \
        jbuilder build @install; \
        done

--
Simon Cruanes

http://weusepgp.info/
key 49AA62B6, fingerprint 949F EB87 8F06 59C6 D7D3  7D8D 4AC0 1D08 49AA 62B6