Make: Fix target name for Windows platform (#7370)

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.
This commit is contained in:
Biswapriyo Nath 2023-04-26 02:43:06 +05:30 committed by Mislav Marohnić
parent 8b987e2deb
commit 591fcafd9c
No known key found for this signature in database

View file

@ -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),)