Merge pull request #45 from justincormack/clean

Add make clean, .gitignore
This commit is contained in:
Justin Cormack 2017-05-26 13:34:06 +01:00 committed by GitHub
commit 1cb9fab3e1
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
moby

View File

@ -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 -output tar test/test.yml
rm moby test.tar
PHONY: install
.PHONY: install
install: moby
cp -a $^ $(PREFIX)/bin/
.PHONY: clean
clean:
rm -f moby