From dc86faeb3a4d1ad697f5fd4d031b598a5a3a668d Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 27 Nov 2019 22:11:46 +0100 Subject: [PATCH] Simplified Makefile --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 54792a455..bda622fae 100644 --- a/Makefile +++ b/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" # -----------------------------------------------------------------------------