1 Star 0 Fork 78

刘思博/ElasticView

forked from 谨言慎行/elastic-view 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 888 Bytes
一键复制 编辑 原始数据 按行查看 历史
Potato 提交于 2022-05-16 14:58 . Create Makefile
Cmd = go
BinariesName = ElasticView
GoBuild = $(GoCmd) build -v -ldflags="-w -s" -o $(BinariesName)
VueBuild = cd vue; npm run build:prod; cd ../
RawOS = ""
ifeq ($OS, Windows_NT)
BinariesName = "ElasticView.exe"
RawOS = windows
else
ifeq ($(shell uname),Darwin)
BinariesName="ElasticView"
RawOS = darwin
else
BinariesName="ElasticView"
RawOS = linux
endif
endif
all: build
build:
$(VueBuild)
$(Cmd) clean
$(GBuild)
clean:
$(Cmd) clean
windows:
$(VueBuild)
export CGO_ENABLED=0
export GOOS=windows
export GOARCH=amd64
$(GBuild)
export GOOS=$(RawOS)
darwin:
$(VueBuild)
export CGO_ENABLED=0
export GOOS=darwin
export GOARCH=amd64
$(GBuild)
export GOOS=$(RawOS)
linux:
$(VueBuild)
export CGO_ENABLED=0
export GOOS=linux
export GOARCH=amd64
$(GBuild)
export GOOS=$(RawOS)
help:
echo "flag support: build, clean, windows, darwin, linux"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/liusibo61/elastic-view.git
[email protected]:liusibo61/elastic-view.git
liusibo61
elastic-view
ElasticView
main

搜索帮助