File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# Set an output prefix, which is the local directory if not specified
1616PREFIX? =$(shell pwd)
1717
18- # Used to populate version variable in main package.
19- VERSION =$(shell git describe --match 'v[0-9]* ' --dirty='.m' --always)
20-
21- GO_LDFLAGS =-ldflags "-X ` go list -mod=vendor ./version ` .Version=$(VERSION ) "
22-
2318PKG =github.com/containerd/continuity
2419
2520PACKAGES =$(shell go list -mod=vendor ./... | grep -v /vendor/)
@@ -41,13 +36,9 @@ all: AUTHORS clean lint build test binaries
4136AUTHORS : .mailmap .git/HEAD
4237 git log --format=' %aN <%aE>' | sort -fu > $@
4338
44- # This only needs to be generated by hand when cutting full releases.
45- version/version.go :
46- ./version/version.sh > $@
47-
48- ${PREFIX}/bin/continuity : version/version.go $(shell find . -type f -name '* .go')
39+ ${PREFIX}/bin/continuity :
4940 @echo " + $@ "
50- @go build -mod=vendor -o $@ ${GO_LDFLAGS} ${ GO_GCFLAGS} ./cmd/continuity
41+ @go build -mod=vendor -o $@ ${GO_GCFLAGS} ./cmd/continuity
5142
5243generate :
5344 go generate -mod=vendor $(PACKAGES )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments