Skip to content

Commit 707176a

Browse files
committed
Makefile: ROOTDIR is no longer needed
1 parent 5c10272 commit 707176a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
PACKAGE := github.com/github/git-sizer
2-
ROOTDIR := $(abspath $(CURDIR))
32
GO111MODULES := 1
43
export GO111MODULES
54

@@ -27,7 +26,7 @@ all: bin/git-sizer
2726
.PHONY: bin/git-sizer
2827
bin/git-sizer:
2928
mkdir -p bin
30-
$(GO) build $(GOFLAGS) -o $(ROOTDIR)/$@ $(PACKAGE)
29+
$(GO) build $(GOFLAGS) -o $@ $(PACKAGE)
3130

3231
# Cross-compile for a bunch of common platforms. Note that this
3332
# doesn't work with USE_ISATTY:
@@ -51,7 +50,7 @@ define PLATFORM_template =
5150
.PHONY: bin/git-sizer-$(1)-$(2)$(3)
5251
bin/git-sizer-$(1)-$(2)$(3):
5352
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)
5554
common-platforms: bin/git-sizer-$(1)-$(2)$(3)
5655

5756
# Note that releases don't include code from vendor (they're only used

0 commit comments

Comments
 (0)