-
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
Showing
8 changed files
with
54 additions
and
21 deletions.
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 +1,2 @@ | ||
.idea | ||
.idea | ||
dist |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Goals: | ||
# - user can build binaries on their system without having to install special tools | ||
# - user can fork the canonical repo and expect to be able to run CircleCI checks | ||
# | ||
# This makefile is meant for humans | ||
|
||
VERSION := $(shell git describe --tags --always --dirty="-dev") | ||
LDFLAGS := -ldflags='-X "main.Version=$(VERSION)"' | ||
|
||
test: | ||
GO111MODULE=on go test -v ./... | ||
|
||
all: dist/aws-aad-$(VERSION)-darwin-amd64 dist/aws-aad-$(VERSION)-linux-amd64 | ||
|
||
clean: | ||
rm -rf ./dist | ||
|
||
dist/: | ||
mkdir -p dist | ||
|
||
dist/aws-aad-$(VERSION)-darwin-amd64: | dist/ | ||
GOOS=darwin GOARCH=amd64 GO111MODULE=on go build $(LDFLAGS) -o $@ | ||
|
||
dist/aws-aad-$(VERSION)-linux-amd64: | dist/ | ||
GOOS=linux GOARCH=amd64 GO111MODULE=on go build $(LDFLAGS) -o $@ | ||
|
||
.PHONY: clean all |
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
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
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