From 2182b1da69ceaafad30859e45be0645d6c915b2c Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Fri, 26 May 2023 16:12:07 +0000 Subject: [PATCH] Makefile: Add dependencies between targets --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0a6bcf0e..f04b64ac 100644 --- a/Makefile +++ b/Makefile @@ -11,19 +11,19 @@ capdef_file = ./irc/caps/defs.go all: build -install: +install: build go install -v -ldflags "-X main.commit=$(GIT_COMMIT) -X main.version=$(GIT_TAG)" -build: +build: ${capdef_file} go build -v -ldflags "-X main.commit=$(GIT_COMMIT) -X main.version=$(GIT_TAG)" -release: +release: build goreleaser --skip-publish --rm-dist -capdefs: +${capdef_file}: ./gencapdefs.py python3 ./gencapdefs.py > ${capdef_file} -test: +test: ${capdef_file} python3 ./gencapdefs.py | diff - ${capdef_file} go test ./... go vet ./...