summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-02-19 09:19:32 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-02-19 09:19:32 -0500
commitb9b015dffedd096e8bbeec2b200b711a8a87acc1 (patch)
treeb2a67f7383a49fb9a54b0620bffa1190b292dc50 /Makefile
parentff8daa70d9df03aec165c9aa0c177f94a283482d (diff)
downloadhtml5ks-b9b015dffedd096e8bbeec2b200b711a8a87acc1.tar.xz
html5ks-b9b015dffedd096e8bbeec2b200b711a8a87acc1.zip
asdf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index ee7409d..e5167cd 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ CWEBP += -short -alpha_cleanup
WEBPMUX ?= webpmux
CONVERT ?= convert
APNGASM ?= apngasm
-UGLIFYJS ?= node_modules/.bin/uglifyjs
+UGLIFYJS ?= uglifyjs
ifdef MINIMAL
ZOPFLIPNG ?= zopflipng
DEFLOPT ?= wine DeflOpt
@@ -22,12 +22,7 @@ endif
DUMP ?= www/dump
-all: modules video audio images js
-
-# === GIT SUBMODULES ===
-Modernizr/dist/modernizr-build.js: config-all.json
- ln -fs ../../config-all.json Modernizr/lib/config-all.json
- cd Modernizr && npm update && node_modules/.bin/grunt build
+all: video audio images js
# === VIDEO ===
@@ -136,9 +131,13 @@ JSDATA := www/js/play.js www/js/images.js
JS := $(JSLIBS) $(MYJS) $(JSDATA)
JSOUT := www/js/all.min.js
+Modernizr/dist/modernizr-build.js: config-all.json
+ ln -fs ../../config-all.json Modernizr/lib/config-all.json
+ cd Modernizr && npm update && node_modules/.bin/grunt build
+
js: $(JSOUT)
-$(JSOUT): $(JS) modules
+$(JSOUT): $(JS)
$(UGLIFYJS) $(JS) -o "$@" --source-map "$@".map --source-map-url ./all.min.js.map -p 2 -m -c drop_debugger=false
# === MISC ===
@@ -163,4 +162,4 @@ watch:
.SUFFIXES:
.INTERMEDIATE: $(Y4M) $(CTC_ANIM_TMP) $(CTC_ANIM_TMP_WEBP)
-.PHONY: modules video audio images js jshint clean space watch
+.PHONY: video audio images js jshint clean space watch