Skip to content

Instantly share code, notes, and snippets.

@xcodebuild
Created October 5, 2014 04:53
Show Gist options
  • Save xcodebuild/fea8389cb91da807e8c4 to your computer and use it in GitHub Desktop.
Save xcodebuild/fea8389cb91da807e8c4 to your computer and use it in GitHub Desktop.
Makefile watch
watch:
while true; do \
make all; \
inotifywait -qre close_write .; \
done
# Then you can use make watch run `make all` once file in . changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment