Simplified Makefile

This commit is contained in:
squidfunk 2019-11-27 22:11:46 +01:00
parent 057225d323
commit dc86faeb3a

View File

@ -184,10 +184,11 @@ material/%.yml: src/%.yml
NAME = $(shell jq -r '.name' package.json) NAME = $(shell jq -r '.name' package.json)
VERSION = $(shell jq -r '.version' package.json) VERSION = $(shell jq -r '.version' package.json)
material: $$@/assets $$@/__init__.py $$@/mkdocs_theme.yml ${HTML} material: $$@/assets $$@/__init__.py $$@/mkdocs_theme.yml ${HTML}
@ sed -i.tmp 's/\$$md-name\$$/${NAME}/' $@/base.html @ sed -i.tmp \
@ sed -i.tmp 's/\$$md-version\$$/${VERSION}/' $@/base.html -e 's/\$$md-name\$$/${NAME}/' \
@ sed -i.tmp 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html -e 's/\$$md-version\$$/${VERSION}/' \
@ rm -f $@/*.tmp -e 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' \
$@/base.html; rm -f $@/base.html.tmp
@ echo "\n ${NAME}-${VERSION}\n" @ echo "\n ${NAME}-${VERSION}\n"
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------