1 Star 0 Fork 21

han_hy / jenkins-formulas

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 709 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
NAME := cj
CGO_ENABLED = 0
GO := go
BUILD_TARGET = build
COMMIT := $(shell git rev-parse --short HEAD)
COVERED_MAIN_SRC_FILE=./main
PATH := $(PATH):$(PWD)/bin
darwin:
GO111MODULE=on CGO_ENABLED=$(CGO_ENABLED) GOOS=darwin GOARCH=amd64 $(GO) $(BUILD_TARGET) $(BUILDFLAGS) -o bin/darwin/$(NAME) $(MAIN_SRC_FILE)
chmod +x bin/darwin/$(NAME)
rm -rf $(NAME) && ln -s bin/darwin/$(NAME) cj
linux:
GO111MODULE=on CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=amd64 $(GO) $(BUILD_TARGET) $(BUILDFLAGS) -o bin/linux/$(NAME) $(MAIN_SRC_FILE)
chmod +x bin/linux/$(NAME)
rm -rf $(NAME) && ln -s bin/linux/$(NAME) cj
cj-check:
./$(NAME) check
cj-build:
./$(NAME) build
build:
docker build . -t jenkins-zh:test
Go
1
https://gitee.com/han_hy/jenkins-formulas.git
git@gitee.com:han_hy/jenkins-formulas.git
han_hy
jenkins-formulas
jenkins-formulas
master

搜索帮助