diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-09 17:11:17 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-09 17:11:17 -0500 |
commit | c6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b (patch) | |
tree | e24dabe19625c067bc7358f8dbfcaa65c336efaa | |
parent | 38a8dfe75f626958a3f49b05142e31cf946b1845 (diff) | |
download | html5ks-c6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b.tar.xz html5ks-c6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b.zip |
Add make watch
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -104,8 +104,15 @@ js: www/js/all.min.js www/js/all.min.js: www/js/html5ks.js www/js/menu.js www/js/api.js www/js/play.js www/js/images.js www/js/characters.js www/js/imachine.js www/js/i18n.js $(UGLIFYJS) $^ -o $@ -p 2 -m -c +# === MISC === + clean: $(RM) $(CVIDEO) $(CAUDIO) $(WEBP) www/favicon.ico -.PHONY: video audio images js clean +watch: + while inotifywait -r -e modify,delete,move --exclude="^./.git" --exclude="\.swp$$" .; do \ + ${MAKE}; \ + done + +.PHONY: video audio images js clean watch .SUFFIXES: |