3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00

Makefile: Add dependencies between targets

This commit is contained in:
Val Lorentz 2023-05-26 16:12:07 +00:00
parent bf33fba33a
commit 2182b1da69

View File

@ -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 ./...