Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Update makefile to remove old build methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Mar 6, 2020
1 parent ae2ed43 commit 19a1e4b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
VERSION := 0.2.2

# Note that I'd love to use goreleaser for this but they don't quite
# have the hooks yet to be able to merge in gon support. Ideally they'd
# just integrate natively in some way.
build: clean
mkdir -p dist
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o ./dist/gon ./cmd/gon
.PHONY: build

# release will package the distribution packages, sign, and notarize
release: build
./dist/gon .gon.hcl
# release will package the distribution packages, sign, and notarize. It
# will then upload the release to GitHub and publish the Homebrew tap.
#
# AFTER THIS YOU MUST MANUALLY DELETE the checksums.txt file since it is
# incomplete and we don't need checksums since our artifacts are signed.
release:
goreleaser --rm-dist
.PHONY: release

clean:
Expand Down

0 comments on commit 19a1e4b

Please sign in to comment.