mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
add makefile
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
|||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
/kustomize
|
||||||
|
|
||||||
# Test binary, build with `go test -c`
|
# Test binary, build with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|||||||
28
Makefile
Normal file
28
Makefile
Normal 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
|
||||||
Reference in New Issue
Block a user