summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2017-02-26 14:12:21 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-26 21:12:21 +0800
commit5bd22a2f4abe69ffb23e14cacad0ff1e75ee08d4 (patch)
treeed89a02cf2842ddecd42c68d3abea1131f95bb2d /Makefile
parent35548a9d4e85171463c29a77b92c317263e5d687 (diff)
downloadgitea-5bd22a2f4abe69ffb23e14cacad0ff1e75ee08d4.tar.gz
gitea-5bd22a2f4abe69ffb23e14cacad0ff1e75ee08d4.zip
Makefile: Also redirect stderr on which calls (#1068)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e34fd9dc0b..93409686e6 100644
--- a/Makefile
+++ b/Makefile
@@ -47,21 +47,21 @@ vet:
.PHONY: generate
generate:
- @which go-bindata > /dev/null; if [ $$? -ne 0 ]; then \
+ @which go-bindata > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/jteeuwen/go-bindata/...; \
fi
go generate $(PACKAGES)
.PHONY: errcheck
errcheck:
- @which errcheck > /dev/null; if [ $$? -ne 0 ]; then \
+ @which errcheck > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/kisielk/errcheck; \
fi
errcheck $(PACKAGES)
.PHONY: lint
lint:
- @which golint > /dev/null; if [ $$? -ne 0 ]; then \
+ @which golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/golang/lint/golint; \
fi
for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
@@ -105,7 +105,7 @@ release-dirs:
.PHONY: release-build
release-build:
- @which xgo > /dev/null; if [ $$? -ne 0 ]; then \
+ @which xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets '$(TARGETS)' -out $(EXECUTABLE)-$(VERSION) .