summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-14 09:53:31 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-14 09:53:31 -0500
commit8ccc464b0de39e7fc73b3c3e50f80f6c2452c8fe (patch)
tree6cb9dff87cbcc04e4d47293a942c0bbbb9691289 /Makefile
parentfcde5bf01f7cd7029cfabd929483a72ba669039a (diff)
downloadhtml5ks-8ccc464b0de39e7fc73b3c3e50f80f6c2452c8fe.tar.xz
html5ks-8ccc464b0de39e7fc73b3c3e50f80f6c2452c8fe.zip
More stuff.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 791d33c..5725e9d 100644
--- a/Makefile
+++ b/Makefile
@@ -99,9 +99,11 @@ $(DUMP)/ui/ctc_anim.webp: $(CTC_ANIM_TMP_WEBP)
# === JS ===
+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
+
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
+www/js/all.min.js: $(JS)
$(UGLIFYJS) $^ -o $@ -p 2 -m -c
# === MISC ===
@@ -109,10 +111,13 @@ www/js/all.min.js: www/js/html5ks.js www/js/menu.js www/js/api.js www/js/play.js
clean:
$(RM) $(CVIDEO) $(CAUDIO) $(WEBP) www/favicon.ico
+jshint: $(JS)
+ jshint $^
+
watch:
while inotifywait -r -e modify,delete,move --exclude="^\./\.git" --exclude="\.swp$$" .; do \
${MAKE}; \
done
-.PHONY: video audio images js clean watch
+.PHONY: video audio images js jshint clean watch
.SUFFIXES: