-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d2e956
commit e6fffc8
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
/kustomize | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |