Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to run make automatically when a file changes? I'm on a Mac. Non-polling would be best but I'll accept polling too.

share|improve this question
up vote 2 down vote accepted

Mac OS X has an API called FSEvents that lets you monitor directories for changes, but not individual files.

share|improve this answer

I am sure there is a way to run a background service that polls the MD5 or something of the file that will change and then runs make. I am inclined to say that unless you purposely trip some trigger when changing the file, there is no way to do it without polling though. Sorry.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.