There's posts on SO that explain how to do it in general or on files of a particular type but I would like to restrict it to when I'm inside my project directory.
I can run a script to determine whether I am. How I can I wire it up with vim?
In other words, how do I do something like?:
if !myscript >/dev/null 2>&1 "doesn't work
autocmd BufWritePost <buffer> make