wtch
wtch runs make whenever it detects a change under the current directory.
Installation
To build wtch, run xcodebuild. The binary will be build/Release/wtch.
Usage
To run make when a change happens anywhere under the current directory (.):
wtch
To customize the command or to watch a specific set of paths:
echo command | wtch path1 path2 ...
See Also
-
https://github.com/emcrisostomo/fswatch
wtch differs from fswatch in that it stops listening to events while
makeis run.This means that any files generated by
makewill trigger fswatch, whereas they will not trigger wtch.On the other hand, if you modify a file yourself while a
makerun is in progress, wtch will not runmakeagain, even though you rightly expected it to.
License
wtch is available under the ISC license. See the LICENSE file for more information.