A bash function that makes a makefile every time you save a file that make depends on.
First install inotify-tools if you haven't already:
apt-get install inotify-tools
Then put this in your .bashrc (or just run it in your current session).
function makewatch() { while true; do make $1; strace -e trace=stat make -q 2>&1 | sed 's/^[^"]*"//' | grep " = 0" | sed 's/".*//' | xargs inotifywait -e create -e modify; done }