Skip to content

Commit 467d4bb

Browse files
committed
build: improve Makefile
1 parent ca35390 commit 467d4bb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.PHONY: build test docker/build
2+
13
OUT_BIN := connperf
24
GO := $(shell which go)
35
GO_SRC := $(shell find . -type f -name '*.go')
@@ -11,9 +13,8 @@ build: $(OUT_BIN)
1113
$(OUT_BIN): $(filter-out *_test.go,$(GO_SRC))
1214
go build -o $(OUT_BIN)
1315

14-
.PHONY: docker test
15-
docker:
16-
$(CMD_DOCKER) build -t $(OUT_DOCKER):latest .
17-
1816
test:
19-
$(GO) test ./...
17+
$(GO) test -v ./...
18+
19+
docker/build:
20+
$(CMD_DOCKER) build -t $(OUT_DOCKER):latest .

0 commit comments

Comments
 (0)