mirror of
https://github.com/microsoft/ethr.git
synced 2024-11-10 17:17:56 +08:00
28 lines
625 B
Makefile
28 lines
625 B
Makefile
#!make
|
|
#-----------------------------------------------------------------------------
|
|
# Copyright (C) Microsoft. All rights reserved.
|
|
# Licensed under the MIT license.
|
|
# See LICENSE.txt file in the project root for full license information.
|
|
#-----------------------------------------------------------------------------
|
|
|
|
GO_BIN ?= go
|
|
GO_LINT ?= golint
|
|
GO_FMT ?= gofmt
|
|
BINARY_NAME ?= Ethr
|
|
|
|
.PHONY: fmt
|
|
fmt:
|
|
find . -name '*.go' | \
|
|
while read -r file; \
|
|
do $(GO_FMT) -w -s "$$file"; \
|
|
done
|
|
|
|
.PHONY: build
|
|
build:
|
|
$(GO_BIN) build -o $(BINARY_NAME) .
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
$(GO_LINT) .
|
|
|
|
.DEFAULT_GOAL := build
|