Skip to content

Commit

Permalink
update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Jun 3, 2023
1 parent de4c92e commit 77740e6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
all: generate_badge generate_favicon
.PHONY: all
all: badge.svg docs/src/assets/favicon.ico

.PHONY: generate_badge generate_favicon

generate_badge:
badge.svg: docs/src/assets/logo.svg
SVG_BASE64=$(shell base64 -w 0 docs/src/assets/logo.svg); \
curl -o "badge.svg" "https://img.shields.io/badge/tested_with-Aqua.jl-05C3DD.svg?logo=data:image/svg+xml;base64,$$SVG_BASE64"
curl -o "badge.svg" "https://img.shields.io/badge/tested_with-Aqua.jl-ACDBDA.svg?logo=data:image/svg+xml;base64,$$SVG_BASE64"

generate_favicon:
docs/src/assets/favicon.ico: docs/src/assets/logo.svg
convert -background none docs/src/assets/logo.svg -resize 256x256 logo.png
convert logo.png -gravity center -background none -extent 256x256 logo256.png
convert logo256.png -resize 16x16 logo16.png
Expand Down

0 comments on commit 77740e6

Please sign in to comment.