3 ms·
That sounds like a great idea. Does anything like that exist already?
by josephg 9y ago
That sounds like a great idea. Does anything like that exist already?
- shoo 9y agosomething along the lines of inotify: http://man7.org/linux/man-pages/man1/inotifywait.1.html http://man7.org/linux/man-pages/man1/inotifywait.1.html or just use tup http://gittup.org/tup/ http://gittup.org/tup/
- gall0ws 9y agoIt's trivial to roll your own: https://github.com/gall0ws/watch https://github.com/gall0ws/watch
- petepete 9y agoAlso, entr http://entrproject.org http://entrproject.org
- oso2k 9y agoEasy enough (assuming $SRC is your list of source files and 'all' is top level target) 'make watch' could do this watch: while ! inotifywait -e modify $(SRC) ; do time -p make all; done
- lloeki 9y agoIf you care for it, fswatch is cross-platform: https://github.com/emcrisostomo/fswatch https://github.com/emcrisostomo/fswatch
- AndrewOMartin 9y agoThere's "when-changed" in pip. pip install when-changed when-changed *.tex -c "make all && echo 'done'" Then you can make rule in your make file called "watch" or "build-server" which calls that command, so you just need to write "make watch".