alfred/Makefile
2026-03-28 19:27:32 +08:00

21 lines
466 B
Makefile

export CGO_CXXFLAGS_ALLOW:=.*
export CGO_LDFLAGS_ALLOW:=.*
export CGO_CFLAGS_ALLOW:=.*
# 跨平台开发,设置交叉编译
#export GOOS=linux
#export GOARCH=amd64
app:="alfred-micah-workflow"
.PHONY: all test clean
all: build
build:
@echo "\033[32m <============== making app ${app} =============> \033[0m"
go build -ldflags='-w -s' $(FLAGS) -o ./${app} ./
clean:
@echo -e "\033[32m ============== cleaning files =============> \033[0m"
rm -fv ${TARGET}