From a9d9d9de2fb1272a83d9f5e6b4c989d0739b7357 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 15 Jul 2021 23:01:31 +0200 Subject: [PATCH] Silence command echoing to focus output on errors --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7cd367d2..0b67f76b 100644 --- a/Makefile +++ b/Makefile @@ -7,19 +7,19 @@ VERSION := $(shell cat ./version) all: run install build clean format check run: - go run -ldflags=$(LDFLAGS) $(ABRA) + @go run -ldflags=$(LDFLAGS) $(ABRA) install: - go install -ldflags=$(LDFLAGS) $(ABRA) + @go install -ldflags=$(LDFLAGS) $(ABRA) build: - go build -ldflags=$(LDFLAGS) $(ABRA) + @go build -ldflags=$(LDFLAGS) $(ABRA) clean: - rm '$(GOPATH)/bin/abra' + @rm '$(GOPATH)/bin/abra' format: - gofmt -s -w . + @gofmt -s -w . check: - test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1) + @test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)