From 908fd417976f4b2e36569e03e0ddafdac8ba927e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 5 Nov 2020 17:20:31 +0100 Subject: [PATCH] update Makefile with generate steps for yarn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- konnectd/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/konnectd/Makefile b/konnectd/Makefile index 8149758d19..4e4d64cbc0 100644 --- a/konnectd/Makefile +++ b/konnectd/Makefile @@ -63,6 +63,8 @@ sync: clean: go clean -i ./... rm -rf $(BIN) $(DIST) + rm -rf node_modules + rm -rf assets/identifier .PHONY: fmt fmt: @@ -84,12 +86,16 @@ lint: generate: assets go generate $(GENERATE) -.PHONY: assets -assets: - mkdir -p assets/identifier/static +assets: assets/identifier/index.html curl -o assets/identifier/static/logo.svg ${LOGO_URL} curl -o assets/identifier/static/favicon.ico ${FAVICON_URL} +assets/identifier/index.html: node_modules + yarn build + +node_modules: + yarn install + .PHONY: changelog changelog: go run github.com/restic/calens >| CHANGELOG.md