Is there a smarter alternative to “watch make”?

前端 未结 11 594
渐次进展
渐次进展 2021-02-01 15:28

I ran into this useful tip that if you\'re working on files a lot and you want them to build automatically you run:

watch make

And it re-runs make every couple s

11条回答
  •  后悔当初
    2021-02-01 16:05

    This one-liner should do it:

    while true; do make --silent; sleep 1; done
    

    It'll run make once every second, and it will only print output when it actually does something.

提交回复
热议问题