summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-03-27 07:48:24 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2014-03-27 07:48:24 -0400
commit74dfbc6783e19443d736f148ba0d5d0891b8a9b2 (patch)
tree21ebaa24345f04d05c0fcd54e98dbc63324cccd0 /Makefile
parentf5c42028631722bcca3538cf6e5d078b5492e3e3 (diff)
downloadhtml5ks-74dfbc6783e19443d736f148ba0d5d0891b8a9b2.tar.xz
html5ks-74dfbc6783e19443d736f148ba0d5d0891b8a9b2.zip
Stuff.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 1222453..48d7503 100644
--- a/Makefile
+++ b/Makefile
@@ -2,24 +2,32 @@ null :=
SPACE := $(null) $(null)
FFMPEG ?= ffmpeg
-FFMPEG += -v warning -y
+FFMPEG := $(FFMPEG) -v warning -y $(FFMPEGFLAGS)
CWEBP ?= cwebp
-CWEBP += -quiet -alpha_cleanup -m 6
+CWEBP := $(CWEBP) -quiet -alpha_cleanup -m 6 $(CWEBPFLAGS)
WEBPMUX ?= webpmux
+WEBPMUX := $(WEBPMUX) $(WEBPMUXFLAGS)
CONVERT ?= convert
+CONVERT := $(CONVERT) $(CONVERTFLAGS)
APNGASM ?= apngasm
+APNGASM := $(APNGASM) $(APNGASMFLAGS)
NPM ?= npm
-NPM += --quiet
+NPM := $(NPM) --quiet $(NPMFLAGS)
JS_COMPRESSOR ?= uglifyjs
LOCAL_UGLIFYJS := node_modules/.bin/uglifyjs
UGLIFYJS ?= $(LOCAL_UGLIFYJS)
+UGLIFYJS := $(UGLIFYJS) $(UGLIFYJSFLAGS)
PACKR ?= packr
CLOSURE_COMPILER ?= java -jar compiler.jar
ifndef MINIMAL
ZOPFLIPNG ?= zopflipng
+ZOPFLIPNG := $(ZOPFLIPNG) $(ZOPFLIPNGFLAGS)
#DEFLOPT ?= wine DeflOpt
+#DEFLOPT := $(DEFLOPT) $(DEFLOPTFLAGS)
DEFLUFF ?= defluff
+DEFLUFF := $(DEFLUFF) $(DEFLUFFFLAGS)
PNGQUANT ?= pngquant
+PNGQUANT := $(PNGQUANT) $(PNGQUANTFLAGS)
endif
GZIP := $(shell unrpyc/find-gzip.sh)
@@ -226,8 +234,8 @@ define png2webp =
$(CWEBP) -q 99 "$<" -o "$@"
$(if $(PNGQUANT), $(PNGQUANT) --force --speed 1 --ext .png "$<")
$(if $(ZOPFLIPNG), $(ZOPFLIPNG) -m -y "$<" "$<")
- $(if $(DEFLOPT), $(DEFLOPT) "$<")
- $(if $(DEFLUFF), $(DEFLUFF) < "$<" > "$<".tmp
+ $(if $(DEFLOPT), $(DEFLOPT) "$<")
+ $(if $(DEFLUFF), $(DEFLUFF) < "$<" > "$<".tmp
mv -f "$<".tmp "$<")
endef
@@ -278,7 +286,7 @@ dev:
# disable implicit rules, increases `make` speed by 3 seconds
# also check symlink targets (for js)
-MAKEFLAGS=-r -L
+MAKEFLAGS=-LRr
.SUFFIXES:
.PRECIOUS: $(WAV)