diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-08 14:19:11 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-01-08 14:19:11 -0500 |
commit | e01fd685f236bbe131734af6be0f340cde79de94 (patch) | |
tree | f51f8ceebdcc08d506d50feaf592e23799d7d09f | |
parent | 60b3d27a4bba167d296de886b93888d82b69cac4 (diff) | |
download | html5ks-e01fd685f236bbe131734af6be0f340cde79de94.tar.xz html5ks-e01fd685f236bbe131734af6be0f340cde79de94.zip |
Move trim to Makefile
-rw-r--r-- | Makefile | 8 | ||||
-rwxr-xr-x | setup.sh | 11 |
2 files changed, 9 insertions, 10 deletions
@@ -5,8 +5,10 @@ FFMPEG ?= ffmpeg FFMPEG += -v warning $(FFMPEGFLAGS) OPUSENC ?= opusenc ZOPFLIPNG ?= zopflipng +OPTIPNG ?= optipng JPEGOPTIM ?= jpegoptim CWEBP ?= cwebp +CWEBP += -short -alpha_cleanup WEBPMUX ?= webpmux CONVERT ?= convert APNGASM ?= apngasm @@ -77,6 +79,12 @@ images: $(WEBP) $(CTC_ANIM) www/favicon.ico www/favicon.ico: $(DUMP)/ui/icon.png $(CONVERT) $< -resize 256x256 -transparent white $@ +$(DUMP)/ui/bt-cf-unchecked.webp $(DUMP)/ui/bt-cf-checked.webp: %.webp: %.png + $(CONVERT) -trim $< $< + $(OPTIPNG) -o7 $< + $(ZOPFLIPNG) -m -y $< $< + $(CWEBP) -q 99 -m 6 $< -o $@ + $(DUMP)/ui/ctc_strip-0.png: $(CTC_ANIM_SRC) $(CONVERT) $< -crop 16x16 $(patsubst %.png,%*.png,$<) @@ -7,16 +7,7 @@ cd $(dirname $0) git submodule update --init pushd unrpyc -make install +make ${MAKEOPTS} install popd -trim() { - for f in "$@"; do - convert -trim "$f" "$f" - done - optipng -o7 "$@" -} - -trim www/dump/ui/bt-cf-unchecked.png www/dump/ui/bt-cf-checked.png - make ${MAKEOPTS} |