Skip to content

Commit

Permalink
Makefile: Add dependencies between targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Val Lorentz committed May 26, 2023
1 parent bf33fba commit 2182b1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down

0 comments on commit 2182b1d

Please sign in to comment.