mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
Merge pull request #45 from justincormack/clean
Add make clean, .gitignore
This commit is contained in:
commit
1cb9fab3e1
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
moby
|
7
Makefile
7
Makefile
@ -11,7 +11,6 @@ moby: $(DEPS) lint
|
|||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
@echo "+ $@: golint, gofmt, go vet"
|
|
||||||
# golint
|
# golint
|
||||||
@test -z "$(shell find . -type f -name "*.go" -not -path "./vendor/*" -not -name "*.pb.*" -exec golint {} \; | tee /dev/stderr)"
|
@test -z "$(shell find . -type f -name "*.go" -not -path "./vendor/*" -not -name "*.pb.*" -exec golint {} \; | tee /dev/stderr)"
|
||||||
# gofmt
|
# gofmt
|
||||||
@ -25,6 +24,10 @@ test: moby
|
|||||||
./moby build -output tar test/test.yml
|
./moby build -output tar test/test.yml
|
||||||
rm moby test.tar
|
rm moby test.tar
|
||||||
|
|
||||||
PHONY: install
|
.PHONY: install
|
||||||
install: moby
|
install: moby
|
||||||
cp -a $^ $(PREFIX)/bin/
|
cp -a $^ $(PREFIX)/bin/
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -f moby
|
||||||
|
Loading…
Reference in New Issue
Block a user