Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyho007 committed Aug 1, 2019
1 parent 3d2e956 commit e6fffc8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.dll
*.so
*.dylib
/kustomize

# Test binary, build with `go test -c`
*.test
Expand Down
28 changes: 28 additions & 0 deletions Makefile
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

0 comments on commit e6fffc8

Please sign in to comment.