13 Star 42 Fork 19

Gitee 极速下载/CockroachDB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/cockroachdb/cockroach
克隆/下载
GNUmakefile 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright 2022 The Cockroach Authors.
#
# Use of this software is governed by the CockroachDB Software License
# included in the /LICENSE file.
.PHONY: all
all: build
$(MAKE) help
.PHONY: help
help:
@echo
@echo "Tip: use ./dev instead of 'make'."
@echo "Try:"
@echo " ./dev help"
@echo
# Generic build rules.
.PHONY: build build%
build:
./dev build $(TARGET)
# Alias: buildshort -> build short; buildoss -> build oss; buildtests -> build tests etc.
build%:
./dev build $(@:build%=%)
.PHONY: doctor
doctor:
./dev doctor
# Most common rules.
.PHONY: generate test bench
generate test bench:
./dev $@ $(TARGET)
# Documented clean-all rules.
.PHONY: clean
clean:
./dev ui clean --all
bazel clean --expunge
# Documented clean-everything rule (dangerous: removes working tree edits!)
.PHONY: unsafe-clean
unsafe-clean: clean
git clean -dxf
## Indicate the base root directory where to install.
## Can point e.g. to a container root.
DESTDIR :=
## The target tree inside DESTDIR.
prefix := /usr/local
## The target bin directory inside the target tree.
bindir := $(prefix)/bin
libdir := $(prefix)/lib
## The install program.
INSTALL := install
TARGET_TRIPLE := $(shell $(shell go env CC) -dumpmachine)
target-is-windows := $(findstring w64,$(TARGET_TRIPLE))
target-is-macos := $(findstring darwin,$(TARGET_TRIPLE))
DYN_EXT := so
EXE_EXT :=
ifdef target-is-macos
DYN_EXT := dylib
endif
ifdef target-is-windows
DYN_EXT := dll
EXE_EXT := .exe
endif
.PHONY: install
install: build buildgeos
: Install the GEOS library.
$(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
$(INSTALL) -m 755 lib/libgeos.$(DYN_EXT) $(DESTDIR)$(libdir)/libgeos.$(DYN_EXT)
$(INSTALL) -m 755 lib/libgeos_c.$(DYN_EXT) $(DESTDIR)$(libdir)/libgeos_c.$(DYN_EXT)
: Install the CockroachDB binary.
$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
$(INSTALL) -m 755 cockroach$(EXE_EXT) $(DESTDIR)$(bindir)/cockroach$(EXE_EXT)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mirrors/CockroachDB.git
git@gitee.com:mirrors/CockroachDB.git
mirrors
CockroachDB
CockroachDB
master

搜索帮助