1 Star 0 Fork 8

charles/greenplum_exporter

forked from inrgihc/greenplum_exporter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 688 Bytes
一键复制 编辑 原始数据 按行查看 历史
tangyibo 提交于 2020-07-25 13:55 . 代码提交
PROJECTNAME=$(shell basename "$(PWD)")
# Make is verbose in Linux. Make it silent.
MAKEFLAGS += --silent
.PHONY: clean
clean:
@echo " > Cleaning build cache..."
go clean
rm -f bin/greenplum_exporter
rm -fr bin/dist
.PHONY: build
build:
@echo " > Building binary..."
if [ ! -d bin/ ]; then mkdir bin/ ; fi;
go mod download && go build -o ./bin/greenplum_exporter
.PHONY: package
package:
@echo " > Archive binary target files and srcipts..."
if [ ! -d bin/ ]; then mkdir bin/ ; fi;
cd bin/ && mkdir -p dist && mkdir -p tmp && cd -
go build -o ./bin/tmp/greenplum_exporter
cd bin/tmp/ && tar -czvf ../dist/greenplum_exporter.tar.gz * && cd -
cd bin/ && rm -fr tmp/ && cd -
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/charles-shi/greenplum_exporter.git
git@gitee.com:charles-shi/greenplum_exporter.git
charles-shi
greenplum_exporter
greenplum_exporter
master

搜索帮助