watch.sh 137 B

1234567891011
  1. #!/bin/bash
  2. echo "Executing Makefile... $1"
  3. make -k $1
  4. while inotifywait -r -e modify ./; do
  5. killall -9 main
  6. make -k $1
  7. done