summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-09 17:11:17 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-09 17:11:17 -0500
commitc6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b (patch)
treee24dabe19625c067bc7358f8dbfcaa65c336efaa /Makefile
parent38a8dfe75f626958a3f49b05142e31cf946b1845 (diff)
downloadhtml5ks-c6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b.tar.xz
html5ks-c6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b.zip
Add make watch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 607d18e..cf8b92f 100644
--- a/Makefile
+++ b/Makefile
@@ -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: