News for hackers. Stuff that matters.
Re:Time for Makefiles to Make a Comeback by josephg on Tuesday September 05, 2017 @05:04AM (#15173535)
That sounds like a great idea. Does anything like that exist already?
Re:Time for Makefiles to Make a Comeback by oso2k on Tuesday September 05, 2017 @05:14AM (#15173581)
Easy 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
Re:Time for Makefiles to Make a Comeback by lloeki on Tuesday September 05, 2017 @05:56AM (#15173759)
If you care for it, fswatch is cross-platform:

https://github.com/emcrisostomo/fswatch

Re:Time for Makefiles to Make a Comeback by shoo on Tuesday September 05, 2017 @05:07AM (#15173551)
something along the lines of inotify:

http://man7.org/linux/man-pages/man1/inotifywait.1.html

or just use tup

http://gittup.org/tup/

Re:Time for Makefiles to Make a Comeback by petepete on Tuesday September 05, 2017 @05:11AM (#15173573)
Re:Time for Makefiles to Make a Comeback by AndrewOMartin on Tuesday September 05, 2017 @07:59AM (#15174300)
There'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".
Re:Time for Makefiles to Make a Comeback by gall0ws on Tuesday September 05, 2017 @05:09AM (#15173561)
It's trivial to roll your own: https://github.com/gall0ws/watch