.PHONY: help
.DEFAULT_GOAL := help
CURRENT_TIME := $(shell node -e "console.log(new Date().getTime())")

icons: icons-css icons-fonts ## Run all icon-related tasks.

icons-css: ## Download and update our IcoMoon font CSS.
	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

icons-fonts: ## Download fonts off IcoMoon.
	curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.eot -o assets/icons/ReadMe-Icons.eot
	curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.woff2 -o assets/icons/ReadMe-Icons.woff2
	curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.ttf -o assets/icons/ReadMe-Icons.ttf
	curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.woff -o assets/icons/ReadMe-Icons.woff
	curl -s https://i.icomoon.io/public/69485c64e8/ReadMeIcons/ReadMe-Icons.svg -o assets/icons/ReadMe-Icons.svg

help: ## Show this help.
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
