Last active
May 21, 2019 03:33
-
-
Save f0i/4484955 to your computer and use it in GitHub Desktop.
Make task to watch file system changes and rebuild
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
all: | |
# do something | |
# watch requires inotify-tools | |
watch: | |
while true; \ | |
do \ | |
inotifywait ./ || exit && make all; \ | |
sleep 0.5; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment