From c6c9555cfae6012cdc6581e0ac0fd0d1fd140f7b Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 9 Jan 2014 17:11:17 -0500 Subject: Add make watch --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3-70-g09d2