1 | .PHONY: help
|
2 | .DEFAULT_GOAL := help
|
3 | CURRENT_TIME := $(shell node -e "console.log(new Date().getTime())")
|
4 |
|
5 | icons: icons-css icons-fonts ## Run all icon-related tasks.
|
6 |
|
7 | icons-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 |
|
10 | icons-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 |
|
17 | help: ## 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}'
|