-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Alseth
committed
Jun 22, 2021
1 parent
eae6fea
commit 84a0d44
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
UNAME := $(shell uname) | ||
|
||
.PHONY: build | ||
build: | ||
go build -ldflags "-w -s" -o build/yubihsm-parse-attestation . | ||
|
||
.PHONY: build-xp | ||
build-xp: | ||
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_darwin_amd64 | ||
GOOS=darwin GOARCH=arm64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_darwin_arm64 | ||
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_linux_amd64 | ||
GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_linux_arm64 | ||
GOOS=windows GOARCH=amd64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_windows_amd64.exe | ||
|
||
.PHONY: release | ||
release: build-xp | ||
ifeq ($(UNAME), Darwin) | ||
cd build && shasum -a 256 yubihsm-parse-attestation_*64* > sha256sums | ||
else | ||
cd build && sha256sum yubihsm-parse-attestation_*64* > sha256sums | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters