File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11NAME =kubeval
22GOFMT_FILES? =$$(find . -name '*.go' | grep -v vendor )
3- OUTPUT ?= bin/darwin/amd64/$(NAME )
43
54all : build
65
@@ -37,7 +36,7 @@ bin/darwin/amd64:
3736build : darwin linux windows
3837
3938darwin : vendor releases bin/darwin/amd64
40- go build -v -o $(CURDIR ) /${OUTPUT}
39+ env GOOS=darwin GOAARCH=amd64 go build -v -o $(CURDIR ) /bin/darwin/amd64/ $( NAME )
4140 tar -cvzf releases/$(NAME ) -darwin-amd64.tar.gz bin/darwin/amd64/$(NAME )
4241
4342linux : vendor releases bin/linux/amd64
@@ -48,9 +47,6 @@ windows: vendor releases bin/windows/amd64
4847 env GOOS=windows GOAARCH=amd64 go build -v -o $(CURDIR ) /bin/windows/amd64/$(NAME )
4948 tar -cvzf releases/$(NAME ) -windows-amd64.tar.gz bin/windows/amd64/$(NAME )
5049
51- example : darwin
52- ./${OUTPUT} fixtures/valid.yaml
53-
5450lint : $(GOPATH ) /bin/golint
5551 golint
5652
7167fmt :
7268 gofmt -w $(GOFMT_FILES )
7369
74- .PHONY : fmt clean cover acceptance test example windows linux darwin build check
70+ .PHONY : fmt clean cover acceptance test windows linux darwin build check
You can’t perform that action at this time.
0 commit comments