3 ms·
On linux you can use inotify to avoid polling. I use such a rule for my makefiles : watch: while true ; do inotifywait -qe close_write $(SRC); $(MA
by emillon 14y ago
On linux you can use inotify to avoid polling. I use such a rule for my makefiles :
watch:
while true ; do inotifywait -qe close_write $(SRC); $(MAKE) ; done
- sp332 14y agoHow do you use it? Like: $ make watch & $ vim Or do you use separate screens?
- emillon 14y agoI use separate screens. Usually I have one terminal for vim and one terminal with a shell for make, git, etc. Using this setup and a tiling window manager, I can see the build log whenever I type :w.
- Hello71 14y agowhile inotifywait -qe close_write $(SRC); do $(MAKE); done