File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,26 +6,21 @@ export GOPATH
66GO := $(CURDIR ) /script/go
77GOFMT := $(CURDIR ) /script/gofmt
88
9- BIN := bin
10-
119GOFLAGS := \
1210 --tags "static" \
1311 -ldflags "-X main.BuildVersion=$(shell git rev-parse HEAD) -X main.BuildDescribe=$(shell git describe --tags --always --dirty) "
14- GO_CMDS := $(BIN ) /git-sizer
1512GO_PKGS := $(shell cd .gopath/src && find github.com/github/git-sizer/ -type f -name '* .go' | xargs -n1 dirname | grep -v '^github.com/github/git-sizer/vendor/' | sort -u)
1613GO_SRCS := $(shell find . -type f -name '* .go' | grep -v '^\./vendor/' | sort -u)
1714
1815.PHONY : all
19- all : $(GO_CMDS )
20-
21- $(BIN ) /% : $(GO_SRCS ) | $(BIN )
22- $(GO ) build $(GOFLAGS ) -o $@ $(PACKAGE ) /$*
16+ all : bin/git-sizer
2317
24- $(BIN ) :
25- mkdir -p $(BIN )
18+ bin/git-sizer : $(GO_SRCS )
19+ mkdir -p bin
20+ $(GO ) build $(GOFLAGS ) -o $@ $(PACKAGE ) /git-sizer
2621
2722.PHONY : test
28- test : $( GO_CMDS ) gotest
23+ test : bin/git-sizer gotest
2924
3025.PHONY : gotest
3126gotest :
You can’t perform that action at this time.
0 commit comments