1 Star 0 Fork 0

Trister/reporter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Izak Marais 提交于 2019-10-18 09:25 . Version 2.3.0 release.
# Running on Windows
#
# Set GOPATH in terminal. Example (make for windows needs forwardslashes):
# set GOPATH=T:/repos/reporter
TARGET:=$(GOPATH)/bin/grafana-reporter
ifeq ($(OS),Windows_NT)
TARGET:=$(GOPATH)/bin/grafana-reporter.exe
endif
SRC:=$(GOPATH)/src/github.com/IzakMarais/reporter
.PHONY: buildall
buildall: build buildlinux
.PHONY: build
build:
go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter
.PHONY: buildlinux
buildlinux:
cmd //v //c "set GOOS=linux&&go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter"
.PHONY: clean
clean:
rm -rf $(GOPATH)/bin
.PHONY: docker-build
docker-build:
@docker build -t izakmarais/grafana-reporter:2.3.0 -t izakmarais/grafana-reporter:latest .
docker-push:
@docker push izakmarais/grafana-reporter
.PHONY: test
test: $(TARGET)
@go test -v ./...
.PHONY test2:
@echo hello $(TARGET)
$(GOPATH)/bin/dep:
@go get -u github.com/golang/dep/cmd/dep
update-deps: $(GOPATH)/bin/dep
@cd $(SRC) && dep ensure
@cd $(SRC)/cmd/grafana-reporter && go install
$(TARGET):
@cd $(SRC)/cmd/grafana-reporter && go install
.PHONY: compose-up
compose-up:
@docker-compose -f ./util/docker-compose.yml up
.PHONY: compose-down
compose-down:
@docker-compose -f ./util/docker-compose.yml stop
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/Trister/reporter.git
git@gitee.com:Trister/reporter.git
Trister
reporter
reporter
master

搜索帮助