diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..6bc8c0ea1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +moby diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..77a6ddbfc --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +VERSION="0.0" # dummy for now +GIT_COMMIT=$(shell git rev-list -1 HEAD) + +default: moby + +DEPS=$(wildcard cmd/moby/*.go) Makefile +PREFIX?=/usr/local + +moby: $(DEPS) + go build --ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" -o $@ github.com/moby/tool/cmd/moby + +PHONY: install +install: moby + cp -a $^ $(PREFIX)/bin/