From dfd1cd9c1cea57225878e549062803041320b741 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 26 May 2017 12:47:06 +0100 Subject: [PATCH] Add make clean, .gitignore Also tidy Makefile a bit Signed-off-by: Justin Cormack --- .gitignore | 1 + Makefile | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitignore 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 index b08ca9a3b..3ecd0c3cc 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ moby: $(DEPS) lint .PHONY: lint lint: - @echo "+ $@: golint, gofmt, go vet" # golint @test -z "$(shell find . -type f -name "*.go" -not -path "./vendor/*" -not -name "*.pb.*" -exec golint {} \; | tee /dev/stderr)" # gofmt @@ -25,6 +24,10 @@ test: moby ./moby build test/test.yml rm moby test.tar -PHONY: install +.PHONY: install install: moby cp -a $^ $(PREFIX)/bin/ + +.PHONY: clean +clean: + rm -f moby