Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cedws committed Mar 30, 2023
1 parent c5842f2 commit 6691a07
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
LDFLAGS = -s -w
GOFLAGS = -trimpath -ldflags "$(LDFLAGS)"

define build
mkdir -p bin
CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -o bin/pubkey-extract-$(1)-$(2) $(GOFLAGS)
endef

all: release

.PHONY: release
release:
$(call build,windows,amd64)
$(call build,linux,amd64)
$(call build,darwin,arm64)

.PHONY: clean
clean:
rm -rf bin

0 comments on commit 6691a07

Please sign in to comment.