# Converts the favicon to PNG
%/favicon-16x16.png: %/favicon.svg
mkdir -p $(dir $@) && \
- $(RSVG_CONVERT) --format=png --width=16 $< > $@
+ $(RSVG_CONVERT) --format=png --width=16 --background-color="#$(WHITE)" $< > $@
%/favicon-32x32.png: %/favicon.svg
mkdir -p $(dir $@) && \
- $(RSVG_CONVERT) --format=png --width=32 $< > $@
+ $(RSVG_CONVERT) --format=png --width=32 --background-color="#$(WHITE)" $< > $@
%/favicon-64x64.png: %/favicon.svg
mkdir -p $(dir $@) && \
- $(RSVG_CONVERT) --format=png --width=64 $< > $@
+ $(RSVG_CONVERT) --format=png --width=64 --background-color="#$(WHITE)" $< > $@
%/favicon-128x128.png: %/favicon.svg
mkdir -p $(dir $@) && \
- $(RSVG_CONVERT) --format=png --width=128 $< > $@
+ $(RSVG_CONVERT) --format=png --width=128 --background-color="#$(WHITE)" $< > $@
%/favicon-256x256.png: %/favicon.svg
mkdir -p $(dir $@) && \
- $(RSVG_CONVERT) --format=png --width=256 $< > $@
+ $(RSVG_CONVERT) --format=png --width=256 --background-color="#$(WHITE)" $< > $@
# This is like the favicon but in 180x180px
%/apple-touch-icon.png: %/favicon.svg
mkdir -p $(dir $@) && \
- $(RSVG_CONVERT) --format=png --width=180 $< > $@
+ $(RSVG_CONVERT) --format=png --width=180 --background-color="#$(WHITE)" $< > $@
# Convert the logo to monochome only
%-monochrome.svg: %.svg