#!/bin/bash echo "Executing Makefile... $1" make -k $1 while inotifywait -r -e modify ./; do killall -9 main make -k $1 done