mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Simplified Makefile
This commit is contained in:
parent
057225d323
commit
dc86faeb3a
9
Makefile
9
Makefile
@ -184,10 +184,11 @@ 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}
|
||||
@ sed -i.tmp 's/\$$md-name\$$/${NAME}/' $@/base.html
|
||||
@ sed -i.tmp 's/\$$md-version\$$/${VERSION}/' $@/base.html
|
||||
@ sed -i.tmp 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html
|
||||
@ rm -f $@/*.tmp
|
||||
@ sed -i.tmp \
|
||||
-e 's/\$$md-name\$$/${NAME}/' \
|
||||
-e 's/\$$md-version\$$/${VERSION}/' \
|
||||
-e 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' \
|
||||
$@/base.html; rm -f $@/base.html.tmp
|
||||
@ echo "\n ${NAME}-${VERSION}\n"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user