diff --git a/Makefile b/Makefile index 5616d30cd..6cb01398c 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ material/assets/fonts/%.css: src/assets/fonts/%.css | $$(@D)/. # Icons IMAGES_ICONS = $(subst src,material,$(wildcard src/assets/images/icons/*.svg)) material/assets/images/icons: ${IMAGES_ICONS} -material/assets/images/icons/%: src/assets/images/icons/% | $$(@D)/. +material/assets/images/icons/%.svg: src/assets/images/icons/%.svg | $$(@D)/. @ echo "+ $@" @ ${BIN}/svgo -q -i $< -o $@ --disable=removeViewBox @@ -184,6 +184,10 @@ material/%.yml: src/%.yml NAME = $(shell jq -r '.name' package.json) VERSION = $(shell jq -r '.version' package.json) material: $$@/assets $$@/__init__.py $$@/mkdocs_theme.yml ${HTML} + echo ${NAME} + echo ${VERSION} + ls package.json + cat package.json @ sed -i "" 's/\$$md-name\$$/${NAME}/' $@/base.html @ sed -i "" 's/\$$md-version\$$/${VERSION}/' $@/base.html @ sed -i "" 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html