Skip to content

andrewffff/watch-make

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watch-make

watch-make is a program which monitors Makefile dependencies and re-invokes make when one changes. It's a bit like guard, nodemon, or node-supervisor, but for any project with a Makefile.

watch-make only works with GNU Make - it uses the --print-data-base option to extract the dependency graph from a Makefile. It understands non-default targets, subdirectories, recursive invocations of Makefiles, etc.

I've been using watch-make on a few of my own projects; watch-make test in a terminal tucked in the corner is my usual working method. It also has a reasonably complete test suite. I've only tried it on Mac OS X.

I want to make watch-make a generally usable tool.

Using watch-make

watch-make is built in node.js. You'll have to check it out and put it in your PATH. Then you can run watch-make foo bar wherever you would usually run make foo bar.

Further work

An npm package and more extensive testing are obvious next steps.

Get in touch! You can follow me on Twitter at @andrewffff.

License

watch-make is published under the GNU General Public License, Version 2. See the file LICENSE.txt for more information.

About

Dependency watcher for GNU Make; like guard or nodemon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published