diff --git a/.gitignore b/.gitignore index 72a65096f..7a00aa8c5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.dll *.so *.dylib +/kustomize # Test binary, build with `go test -c` *.test diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..8f2e0f929 --- /dev/null +++ b/Makefile @@ -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