From 8ccc464b0de39e7fc73b3c3e50f80f6c2452c8fe Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 14 Jan 2014 09:53:31 -0500 Subject: More stuff. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3-70-g09d2