Created
October 5, 2014 04:53
-
-
Save xcodebuild/fea8389cb91da807e8c4 to your computer and use it in GitHub Desktop.
Makefile watch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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