代码拉取完成,页面将自动刷新
REPO := mydata
GOOS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
GOARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
GOENV := GO111MODULE=on CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH)
GO := $(GOENV) go
GOBUILD := $(GO) build -trimpath
GORUN := $(GO) run
SHELL := /usr/bin/env bash
COMMIT := $(shell git describe --always --no-match --tags --dirty="-dev")
BUILDTS := $(shell date '+%Y-%m-%d %H:%M:%S')
GITHASH := $(shell git rev-parse HEAD)
GITREF := $(shell git rev-parse --abbrev-ref HEAD)
GOVER := $(shell go version)
LDFLAGS := -w -s
LDFLAGS += -X "$(REPO)/internal/version.ReleaseVersion=$(COMMIT)"
LDFLAGS += -X "$(REPO)/internal/version.BuildTS=$(BUILDTS)"
LDFLAGS += -X "$(REPO)/internal/version.GitHash=$(GITHASH)"
LDFLAGS += -X "$(REPO)/internal/version.GitBranch=$(GITREF)"
LDFLAGS += -X "$(REPO)/internal/version.GoVersion=$(GOVER)"
all: gen conv mydata
mydata:
CGO_CFLAGS=-I$(IBM_DB_HOME)/include CGO_LDFLAGS=-L$(IBM_DB_HOME)/lib $(GOBUILD) -ldflags '$(LDFLAGS)' -o ./dist/mydata main.go
gen:
CGO_CFLAGS=-I$(IBM_DB_HOME)/include CGO_LDFLAGS=-L$(IBM_DB_HOME)/lib $(GOBUILD) -ldflags '$(LDFLAGS)' -o ./dist/gen cmd/other/genschema/gen.go
conv:
CGO_CFLAGS=-I$(IBM_DB_HOME)/include CGO_LDFLAGS=-L$(IBM_DB_HOME)/lib $(GOBUILD) -ldflags '$(LDFLAGS)' -o ./dist/conv cmd/other/conv/conv.go
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。