1 Star 1 Fork 1

baetyl / baetyl-remote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
zhaoxin26 提交于 2021-03-02 20:34 . baetyl-818 update Makefile
MODULES?=object
PLATFORM_ALL:=linux/amd64 linux/arm64 linux/386 linux/arm/v7
GO_TEST_FLAGS?=
GO_TEST_PKGS?=$(shell go list ./...)
ifndef PLATFORMS
GO_OS:=$(shell go env GOOS)
GO_ARCH:=$(shell go env GOARCH)
GO_ARM:=$(shell go env GOARM)
PLATFORMS:=$(if $(GO_ARM),$(GO_OS)/$(GO_ARCH)/$(GO_ARM),$(GO_OS)/$(GO_ARCH))
ifeq ($(GO_OS),darwin)
PLATFORMS+=linux/amd64
endif
else ifeq ($(PLATFORMS),all)
override PLATFORMS:=$(PLATFORM_ALL)
endif
OUTPUT:=output
OUTPUT_MODS:=$(MODULES:%=baetyl-remote-%)
TEST_MODS:=$(MODULES:%=test/baetyl-remote-%) #a little tricky to add prefix 'test/' in order to distinguish from OUTPUT_MODS
IMAGE_MODS:=$(MODULES:%=image/baetyl-remote-%) # a little tricky to add prefix 'image/' in order to distinguish from OUTPUT_MODS
.PHONY: all $(OUTPUT_MODS)
all: $(OUTPUT_MODS)
$(OUTPUT_MODS):
@make -C $@
.PHONY: image $(IMAGE_MODS)
image: $(IMAGE_MODS)
$(IMAGE_MODS):
@make -C $(notdir $@) image
$(TEST_MODS):
@make -C $(notdir $@) test
.PHONY: test
test: $(TEST_MODS)
.PHONY: rebuild
rebuild: clean all
.PHONY: clean
clean:
@-rm -rf $(OUTPUT)
Go
1
https://gitee.com/baetyl/baetyl-remote.git
git@gitee.com:baetyl/baetyl-remote.git
baetyl
baetyl-remote
baetyl-remote
master

搜索帮助