1 Star 0 Fork 69

七码 / 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"
Go
1
https://gitee.com/lazyw/elastic-view.git
git@gitee.com:lazyw/elastic-view.git
lazyw
elastic-view
ElasticView
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891