#!/usr/bin/make -f
+PNGCRUSH ?= pngcrush
+PNGCRUSHFLAGS ?= -brute -blacken -reduce -q
+CRUSH.png ?= $(PNGCRUSH) $(PNGCRUSHFLAGS)
+
favicon_%.png: favicon.svg
rsvg-convert -w $* -h $* $^ > $@
+ $(CRUSH.png) -ow $@
-%.ico: %_128.png %_64.png %_48.png %_32.png %_16.png
+%.ico: %_48.png %_32.png %_16.png
convert $^ $@
ICONS := favicon.ico favicon_128.png favicon_192.png favicon_256.png
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/main.css" type="text/css">
<link rel=apple-touch-icon sizes=256x256 href=favicon_256.png>
- <link rel=icon sizes="16x16 32x32 48x48 64x64 128x128" href=favicon.ico>
+ <link rel=icon sizes="16x16 32x32 48x48" href=favicon.ico>
<link rel=icon sizes=128x128 href=favicon_128.png>
<link rel=icon sizes=192x192 href=favicon_192.png>
<link rel=icon sizes=256x256 href=favicon_256.png>
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css" type="text/css">
<link rel=apple-touch-icon sizes=256x256 href=favicon_256.png>
- <link rel=icon sizes="16x16 32x32 48x48 64x64 128x128" href=favicon.ico>
+ <link rel=icon sizes="16x16 32x32 48x48" href=favicon.ico>
<link rel=icon sizes=128x128 href=favicon_128.png>
<link rel=icon sizes=192x192 href=favicon_192.png>
<link rel=icon sizes=256x256 href=favicon_256.png>
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/main.css" type="text/css">
<link rel=apple-touch-icon sizes=256x256 href=favicon_256.png>
- <link rel=icon sizes="16x16 32x32 48x48 64x64 128x128" href=favicon.ico>
+ <link rel=icon sizes="16x16 32x32 48x48" href=favicon.ico>
<link rel=icon sizes=128x128 href=favicon_128.png>
<link rel=icon sizes=192x192 href=favicon_192.png>
<link rel=icon sizes=256x256 href=favicon_256.png>
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/main.css" type="text/css">
<link rel=apple-touch-icon sizes=256x256 href=favicon_256.png>
- <link rel=icon sizes="16x16 32x32 48x48 64x64 128x128" href=favicon.ico>
+ <link rel=icon sizes="16x16 32x32 48x48" href=favicon.ico>
<link rel=icon sizes=128x128 href=favicon_128.png>
<link rel=icon sizes=192x192 href=favicon_192.png>
<link rel=icon sizes=256x256 href=favicon_256.png>