I would like to monitor directory for change and if any file in that directory changes then I would like to build software. How can I do it with a shell "oneliner" ?
I was trying some variations of
watch "if [ find _source -mmin -1 ]; then make; fi"
but it's not correct syntax.