Skip to content

Commit

Permalink
Add basic Makefile, for building and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Nov 19, 2018
1 parent 85a0ca1 commit 74c6423
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Initialize version and gc flags
GO_LDFLAGS := -X `go list ./version`.GitCommit=`git rev-parse --short HEAD 2>/dev/null`
GO_GCFLAGS :=

podman-machine: $(shell find . -type f -name '*.go')
go build -ldflags "$(GO_LDFLAGS)" $(GO_GCFLAGS) ./cmd/podman-machine

.PHONY: test
test:
go test ./...

0 comments on commit 74c6423

Please sign in to comment.