Skip to content

Commit

Permalink
Make: Fix target name for Windows platform (cli#7370)
Browse files Browse the repository at this point in the history
This fixes the taget name by adding .exe extension for Windows platform.
Otherwise, the following error is shown with `make bin/gh.exe' command.

    make: *** No rule to make target 'script/build', needed by 'bin/gh.exe'.  Stop.
  • Loading branch information
Biswa96 authored and mislav committed May 9, 2023
1 parent 8b987e2 commit 591fcaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ endif
## The following tasks delegate to `script/build.go` so they can be run cross-platform.

.PHONY: bin/gh$(EXE)
bin/gh$(EXE): script/build
@script/build $@
bin/gh$(EXE): script/build$(EXE)
@script/build$(EXE) $@

script/build$(EXE): script/build.go
ifeq ($(EXE),)
Expand Down

0 comments on commit 591fcaf

Please sign in to comment.