File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 47
47
48
48
.PHONY : generate
49
49
generate :
50
- @which go-bindata > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
50
+ @hash go-bindata > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
51
51
go get -u github.com/jteeuwen/go-bindata/...; \
52
52
fi
53
53
go generate $(PACKAGES )
54
54
55
55
.PHONY : errcheck
56
56
errcheck :
57
- @which errcheck > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
57
+ @hash errcheck > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
58
58
go get -u github.com/kisielk/errcheck; \
59
59
fi
60
60
errcheck $(PACKAGES )
61
61
62
62
.PHONY : lint
63
63
lint :
64
- @which golint > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
64
+ @hash golint > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
65
65
go get -u github.com/golang/lint/golint; \
66
66
fi
67
67
for PKG in $( PACKAGES) ; do golint -set_exit_status $$ PKG || exit 1; done ;
@@ -105,7 +105,7 @@ release-dirs:
105
105
106
106
.PHONY : release-build
107
107
release-build :
108
- @which xgo > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
108
+ @hash xgo > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
109
109
go get -u github.com/karalabe/xgo; \
110
110
fi
111
111
xgo -dest $(DIST ) /binaries -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)' -targets ' $(TARGETS)' -out $(EXECUTABLE ) -$(VERSION ) .
You can’t perform that action at this time.
0 commit comments