Skip to content

Commit 5da81ab

Browse files
committed
feat: Makefile
自动识别操作系统并且添加可执行文件的后缀.exe
1 parent bc0e8d6 commit 5da81ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ MAIN_FILE := main.go
99

1010
BIN_DIR := ./bin
1111
APP := github520cli # the name of the application
12+
ifeq ($(OS),Windows_NT)
13+
APP := $(strip $(APP)).exe
14+
endif
1215

1316
# the name of the docker image
1417
# DOCKER_IMAGE_NAME := docker-image-name-example

0 commit comments

Comments
 (0)