UNPKG

1.17 kBPlain TextView Raw
1.PHONY: help
2.DEFAULT_GOAL := help
3CURRENT_TIME := $(shell node -e "console.log(new Date().getTime())")
4
5icons: icons-css icons-fonts ## Run all icon-related tasks.
6
7icons-css: ## Download and update our IcoMoon font CSS.
8 curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/style.css?$(CURRENT_TIME) | sed -e 's/https:\/\/i.icomoon.io\/public\/69485c64e8\/ReadMeIcons/./g' > assets/icons/import.css
9
10icons-fonts: ## Download fonts off IcoMoon.
11 curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.eot -o assets/icons/ReadMe-Icons.eot
12 curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.woff2 -o assets/icons/ReadMe-Icons.woff2
13 curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.ttf -o assets/icons/ReadMe-Icons.ttf
14 curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.woff -o assets/icons/ReadMe-Icons.woff
15 curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.svg -o assets/icons/ReadMe-Icons.svg
16
17help: ## Show this help.
18 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'