[1] http://eradman.com/entrproject/
(I didn't read any of the man pages)
while true; do ls -d src/*.c | entr -d <cmd>; done
[1] http://eradman.com/entrproject/