Files
MINGW-packages/mingw-w64-github-cli/0001-makefile-add-exe.patch
2021-02-20 18:28:27 +05:30

33 lines
796 B
Diff

diff --git a/Makefile b/Makefile
index 3dfc08a0..0949fdb9 100644
--- a/Makefile
+++ b/Makefile
@@ -8,19 +8,19 @@ export CGO_LDFLAGS
## The following tasks delegate to `script/build.go` so they can be run cross-platform.
.PHONY: bin/gh
-bin/gh: script/build
- @script/build bin/gh
+bin/gh: script/build.exe
+ @script/build.exe bin/gh.exe
-script/build: script/build.go
- go build -o script/build script/build.go
+script/build.exe: script/build.go
+ go build -o script/build.exe script/build.go
.PHONY: clean
-clean: script/build
- @script/build clean
+clean: script/build.exe
+ @script/build.exe clean
.PHONY: manpages
-manpages: script/build
- @script/build manpages
+manpages: script/build.exe
+ @script/build.exe manpages
# just a convenience task around `go test`
.PHONY: test