From 10ded496d84b208d61cbd956ce28934c886ef8e6 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 26 Nov 2013 20:53:15 -0500 Subject: Build stuff. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5b0b99d..2d29b9d 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ OPUSENC ?= opusenc ZOPFLIPNG ?= zopflipng JPEGOPTIM ?= jpegoptim CWEBP ?= cwebp +CONVERT ?= convert DUMP ?= www/dump @@ -53,7 +54,7 @@ JPG := $(shell find $(DUMP) -name '*.jpg') WEBP := $(patsubst %.png,%.webp,$(PNG)) \ $(patsubst %.jpg,%.webp,$(JPG)) -images: $(WEBP) +images: $(WEBP) favicon.ico %.webp: %.png $(ZOPFLIPNG) -m -y $< $< @@ -63,7 +64,10 @@ images: $(WEBP) $(JPEGOPTIM) --strip-all $< $(CWEBP) -q 90 -m 6 $< -o $@ +www/favicon.ico: www/dump/ui/icon.png + $(CONVERT) $< -resize 256x256 -transparent white $@ + clean: - rm $(CVIDEO) $(CAUDIO) $(WEBP) + $(RM) $(CVIDEO) $(CAUDIO) $(WEBP) .PHONY: video audio images clean -- cgit v1.2.3-70-g09d2