File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11PACKAGE := github.com/github/git-sizer
2- ROOTDIR := $(abspath $(CURDIR ) )
32GO111MODULES := 1
43export GO111MODULES
54
@@ -27,7 +26,7 @@ all: bin/git-sizer
2726.PHONY : bin/git-sizer
2827bin/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 )
5251bin/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 )
5554common-platforms: bin/git-sizer-$(1 ) -$(2 )$(3 )
5655
5756# 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