From f964160d008dc618792ab96312066f7a8e3363ef Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 27 May 2022 15:30:34 +0300 Subject: [PATCH] fix: Detect changes to examples/templates in Makefile This change ensures the embedded templates are up-to-date. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fa1ea76cafe1a..35d2f54b06cc7 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ INSTALL_DIR=$(shell go env GOPATH)/bin GOOS=$(shell go env GOOS) GOARCH=$(shell go env GOARCH) -bin: $(shell find . -not -path './vendor/*' -type f -name '*.go') go.mod go.sum +bin: $(shell find . -not -path './vendor/*' -type f -name '*.go') go.mod go.sum $(shell find ./examples/templates) @echo "== This builds binaries for command-line usage." @echo "== Use \"make build\" to embed the site." goreleaser build --snapshot --rm-dist --single-target @@ -24,7 +24,7 @@ dev: ./scripts/develop.sh .PHONY: dev -dist/artifacts.json: site/out/index.html $(shell find . -not -path './vendor/*' -type f -name '*.go') go.mod go.sum +dist/artifacts.json: site/out/index.html $(shell find . -not -path './vendor/*' -type f -name '*.go') go.mod go.sum $(shell find ./examples/templates) goreleaser release --snapshot --rm-dist --skip-sign fmt/prettier: