Merge pull request #1416 from anthonyho007/makefile

add Makefile for local development
This commit is contained in:
Kubernetes Prow Robot
2019-08-07 11:04:09 -07:00
committed by GitHub
2 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
/kustomize
# Test binary, build with `go test -c`
*.test

28
Makefile Normal file
View File

@@ -0,0 +1,28 @@
BIN_NAME=kustomize
export GO111MODULE=on
all: test build
test: generate-code test-lint test-go
test-go:
go test -v ./...
test-lint:
golangci-lint run ./...
generate-code:
./plugin/generateBuiltins.sh $(GOPATH)
build:
go build -o $(BIN_NAME) cmd/kustomize/main.go
install:
go install $(PWD)/cmd/kustomize
clean:
go clean
rm -f $(BIN_NAME)
.PHONY: test build install clean generate-code test-go test-lint