Skip to content

Commit

Permalink
perf(make): fix metadata missing
Browse files Browse the repository at this point in the history
fix metadata missing

Signed-off-by: mritd <[email protected]>
  • Loading branch information
mritd committed Aug 17, 2020
1 parent 1eb4f89 commit d4993ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ COMMIT_SHA1 := $(shell git rev-parse HEAD)
all:
gox -osarch="darwin/amd64 linux/386 linux/amd64" \
-output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}" \
-ldflags "-X 'github.com/mritd/mmh/cmd.Version=${BUILD_VERSION}' \
-X 'github.com/mritd/mmh/cmd.BuildDate=${BUILD_DATE}' \
-X 'github.com/mritd/mmh/cmd.CommitID=${COMMIT_SHA1}'"
-ldflags "-X 'github.com/mritd/mmh/pkg/cmd.Version=${BUILD_VERSION}' \
-X 'github.com/mritd/mmh/pkg/cmd.BuildDate=${BUILD_DATE}' \
-X 'github.com/mritd/mmh/pkg/cmd.CommitID=${COMMIT_SHA1}'"
tar -C docs -zcvf dist/addons.tar.gz addons

release: clean all
Expand All @@ -20,9 +20,9 @@ clean:
rm -rf dist

install:
go install -ldflags "-X 'github.com/mritd/mmh/cmd.Version=${BUILD_VERSION}' \
-X 'github.com/mritd/mmh/cmd.BuildDate=${BUILD_DATE}' \
-X 'github.com/mritd/mmh/cmd.CommitID=${COMMIT_SHA1}'"
go install -ldflags "-X 'github.com/mritd/mmh/pkg/cmd.Version=${BUILD_VERSION}' \
-X 'github.com/mritd/mmh/pkg/cmd.BuildDate=${BUILD_DATE}' \
-X 'github.com/mritd/mmh/pkg/cmd.CommitID=${COMMIT_SHA1}'"

.PHONY: all release pre-release clean install

Expand Down

0 comments on commit d4993ff

Please sign in to comment.