From ea8fb764529e69f3eb180ec7cd0c49923d2f5e9d Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Wed, 6 Jun 2018 16:51:06 +0530 Subject: [PATCH] added GOFMT TO MAKEFILE --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ac73abc599..db9f5b7fb5 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ .PHONY: XDC-windows XDC-windows-386 XDC-windows-amd64 GOBIN = $(shell pwd)/build/bin +GOFMT = gofmt GO ?= latest XDC: @@ -143,4 +144,8 @@ XDC-windows-386: XDC-windows-amd64: build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/XDC @echo "Windows amd64 cross compilation done:" - @ls -ld $(GOBIN)/XDC-windows-* | grep amd64 + @ls -ld $(GOBIN)/geth-windows-* | grep amd64 + + gofmt: + $(GOFMT) -s -w $(GO_FILES) + $(GIT) checkout vendor