From 05e55c44ce6735652e8cc5709fafb1ab6e0f2a87 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 9 Aug 2018 23:17:07 -0700 Subject: [PATCH] Makefile: reorder definitions before include + proper tabbing --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 7ab24e3dc..225566b04 100644 --- a/Makefile +++ b/Makefile @@ -40,14 +40,21 @@ GOLIST := go list $(PKG)/... | grep -v '/vendor/' GOLISTCOVER := $(shell go list -f '{{.ImportPath}}' ./... | sed -e 's/^$(ESCPKG)/./') GOLISTLINT := $(shell go list -f '{{.Dir}}' ./... | grep -v 'lnrpc') +RM := rm -f +CP := cp +MAKE := make +XARGS := xargs -L 1 + +include make/testing_flags.mk + COVER = for dir in $(GOLISTCOVER); do \ - $(GOTEST) $(TEST_FLAGS) \ + $(GOTEST) -tags="$(TEST_TAGS)" \ -covermode=count \ -coverprofile=$$dir/profile.tmp $$dir; \ \ if [ $$? != 0 ] ;\ then \ - exit 1 ;\ + exit 1; \ fi ;\ \ if [ -f $$dir/profile.tmp ]; then \ @@ -69,19 +76,12 @@ LINT = $(LINT_BIN) \ CGO_STATUS_QUO := ${CGO_ENABLED} -RM := rm -f -CP := cp -MAKE := make -XARGS := xargs -L 1 - GREEN := "\\033[0;32m" NC := "\\033[0m" define print echo $(GREEN)$1$(NC) endef -include make/testing_flags.mk - default: scratch all: scratch check install