continuous make

build-on-save is easy. i put this in my .bash_aliases and use it everywhere!

continuous-make() {
 while true; do
  if ! make "$@" -q; then
   make "$@"
  fi
  sleep 1
 done
}

you can use it like that:

continuous-make doc

and it will call make doc whenever a dependency of doc is changed.

0 Kommentare:

Kommentar veröffentlichen