summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: