File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
PACKAGE := github.com/github/git-sizer
2
- ROOTDIR := $(abspath $(CURDIR ) )
3
2
GO111MODULES := 1
4
3
export GO111MODULES
5
4
@@ -27,7 +26,7 @@ all: bin/git-sizer
27
26
.PHONY : bin/git-sizer
28
27
bin/git-sizer :
29
28
mkdir -p bin
30
- $(GO ) build $(GOFLAGS ) -o $( ROOTDIR ) / $ @ $(PACKAGE )
29
+ $(GO ) build $(GOFLAGS ) -o $@ $(PACKAGE )
31
30
32
31
# Cross-compile for a bunch of common platforms. Note that this
33
32
# doesn't work with USE_ISATTY:
@@ -51,7 +50,7 @@ define PLATFORM_template =
51
50
.PHONY: bin/git-sizer-$(1 ) -$(2 )$(3 )
52
51
bin/git-sizer-$(1 ) -$(2 )$(3 ) :
53
52
mkdir -p bin
54
- GOOS=$(1 ) GOARCH=$(2 ) $$(GO ) build $$(GOFLAGS ) -ldflags "-X main.ReleaseVersion=$$(VERSION ) " -o $$( ROOTDIR ) / $$ @ $$(PACKAGE )
53
+ GOOS=$(1 ) GOARCH=$(2 ) $$(GO ) build $$(GOFLAGS ) -ldflags "-X main.ReleaseVersion=$$(VERSION ) " -o $$@ $$(PACKAGE )
55
54
common-platforms: bin/git-sizer-$(1 ) -$(2 )$(3 )
56
55
57
56
# Note that releases don't include code from vendor (they're only used
You can’t perform that action at this time.
0 commit comments