1 Star 1 Fork 0

Rong Tao/libcare

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
Rong Tao 提交于 2021-09-16 05:29 . GitHub libcare
#dummy
all: src
src: FORCE
make -C src
tests: src FORCE
make -C tests
clean:
make -C src clean
make -C tests clean
ALL_HOSTS ?= $(shell cat vagrant_boxes)
LATEST_HOSTS ?= centos-6.8 centos-7.4 ubuntu-14.04 ubuntu-16.04
KEEP_ENV ?=
LOGDIR?=logs/
vagrant-ci-%: FORCE
mkdir -p $(LOGDIR); \
host="$(subst vagrant-ci-,,$@)-test"; \
test -z "$(QUIET)" || \
exec 3<&1 4<&2 1>$(LOGDIR)$(LOGPREFIX)$$host.log 2>&1; \
vagrant up $$host && \
vagrant ssh $$host -- -tt 'ls -R ~/kernelcare'; \
vagrant ssh $$host -- -tt \
'KPCC_DEBUG=1 \
make -C libcare clean tests'; \
rv=$$?; \
test "$(KEEP_ENV)" = "always" -o \
"$(KEEP_ENV)" = "failed" -a $$rv -ne 0 || \
vagrant destroy -f $$host; \
test $$rv -ne 0 -a -n "$(QUIET)" && \
{ \
echo "LOG for $$host in $(LOGDIR)$(LOGPREFIX)$$host.log" >&4;\
cat $(LOGDIR)$(LOGPREFIX)$$host.log >&4; \
}; \
test $$rv -eq 0
vagrant-ci: QUIET:=1
vagrant-ci: $(addprefix vagrant-ci-,$(LATEST_HOSTS))
vagrant-ci-full: QUIET:=1
vagrant-ci-full: $(addprefix vagrant-ci-,$(ALL_HOSTS))
vagrant-ci-clean:
for host in $(addsuffix -test,$(HOSTS)); do \
vagrant destroy -f $$host; \
done
FORCE:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rtoax/libcare.git
git@gitee.com:rtoax/libcare.git
rtoax
libcare
libcare
master

搜索帮助