From 591fcafd9c11dc59472789757f26b9fa635908d8 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 26 Apr 2023 02:43:06 +0530 Subject: [PATCH] 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. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e6bd74207..7dac0d290 100644 --- a/Makefile +++ b/Makefile @@ -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),)