File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -16,22 +16,18 @@ TOOL_BIN_DIR ?= $(shell go env GOPATH)/bin
16
16
TOOL_GOLINT := $(TOOL_BIN_DIR ) /golint
17
17
TOOL_STATICCHECK := $(TOOL_BIN_DIR ) /staticcheck
18
18
19
- GO_SOURCES = $(shell find . -name * .go)
20
-
21
19
22
20
# =============================================================================
23
21
# build
24
22
# =============================================================================
25
- build : $(DIST_PATH ) /go-httpbin
26
-
27
- buildtests : $(DIST_PATH ) /go-httpbin.test
28
-
29
- $(DIST_PATH ) /go-httpbin : $(GO_SOURCES )
23
+ build :
30
24
mkdir -p $(DIST_PATH )
31
25
CGO_ENABLED=0 go build -ldflags=" -s -w" -o $(DIST_PATH ) /go-httpbin ./cmd/go-httpbin
26
+ .PHONY : build
32
27
33
- $( DIST_PATH ) /go-httpbin.test : $( GO_SOURCES )
28
+ buildtests :
34
29
CGO_ENABLED=0 go test -ldflags=" -s -w" -v -c -o $(DIST_PATH ) /go-httpbin.test ./httpbin
30
+ .PHONY : buildtests
35
31
36
32
clean :
37
33
rm -rf $(DIST_PATH ) $(COVERAGE_PATH )
You can’t perform that action at this time.
0 commit comments