by josephg · 9y ago · 0 comments
watch:
while ! inotifywait -e modify $(SRC) ; do time -p make all; donehttp://man7.org/linux/man-pages/man1/inotifywait.1.html
or just use tup
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".