From 74c642316640bd0005e2594798426a28ea009c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Mon, 19 Nov 2018 22:20:02 +0100 Subject: [PATCH] Add basic Makefile, for building and testing --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..28786f9 --- /dev/null +++ b/Makefile @@ -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 ./...