Don Marti

Thu 08 Aug 2013 06:49:12 AM PDT

Automatically run make when a file changes

Hey, kids! makewatch script!

Really simple: do a makewatch [target] to re-run make with the supplied [target] when any files relevant to that target change.

This is something originally discussed in a thread on the linux-elitists mailing list.

Andrew Cowie has written something similar. The main thing that this one does differently is to ask make which files matter to it, instead of doing an inotifywatch on the whole directory. Comments and suggestions welcome.