Skip to content

Commit bdbc487

Browse files
committed
Makefile: simplify the build command
1 parent 57e3d3e commit bdbc487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ all: bin/git-sizer
2626
.PHONY: bin/git-sizer
2727
bin/git-sizer:
2828
mkdir -p bin
29-
$(GO) build $(GOFLAGS) -o $@ $(PACKAGE)
29+
$(GO) build $(GOFLAGS) -o $@ .
3030

3131
# Cross-compile for a bunch of common platforms. Note that this
3232
# doesn't work with USE_ISATTY:
@@ -50,7 +50,7 @@ define PLATFORM_template =
5050
.PHONY: bin/git-sizer-$(1)-$(2)$(3)
5151
bin/git-sizer-$(1)-$(2)$(3):
5252
mkdir -p bin
53-
GOOS=$(1) GOARCH=$(2) $$(GO) build $$(GOFLAGS) -ldflags "-X main.ReleaseVersion=$$(VERSION)" -o $$@ $$(PACKAGE)
53+
GOOS=$(1) GOARCH=$(2) $$(GO) build $$(GOFLAGS) -ldflags "-X main.ReleaseVersion=$$(VERSION)" -o $$@ .
5454
common-platforms: bin/git-sizer-$(1)-$(2)$(3)
5555

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

0 commit comments

Comments
 (0)