加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
subdir=attestation
delfile=pca-root.crt pca-root.key pca-ek.crt pca-ek.key https.crt https.key ikpri.key ikpub.key ic.crt ectest.crt ectest.key ikpritest.key ikpubtest.key ictest.crt rac-log.txt ras-log.txt rahub-log.txt
.PHONY: all build test clean install check vendor ci-check bat prepare sim-test sim-clean rpm rpm-clean
all build test install check: vendor
for name in $(subdir); do\
make -C $$name $@ || exit $$?;\
done
vendor:
make -C attestation vendor || exit $$?;
clean:
for name in $(delfile); do\
find . -name $$name -exec rm -f {} \; ;\
done
rm -rf attestation/vendor
for name in $(subdir); do\
make -C $$name $@ || exit $$?;\
done
test: build
bat: build test
prepare:
for name in $(subdir); do\
cd $$name; sh quick-scripts/prepare-build-env.sh;\
cd quick-scripts; sh prepare-database-env.sh;\
cd ../..;\
done
ci-check: prepare bat
# run one ras and some racs to do the simulation test.
sim-test: build
/bin/bash ./attestation/test/sim-test.sh
sim-clean: clean
-@pkill -u ${USER} ras || true
-@pkill -u ${USER} raagent || true
-@pkill -u ${USER} rahub || true
-@pkill -u ${USER} server || true
-@pkill -u ${USER} client || true
rpm:
/bin/bash ./attestation/quick-scripts/buildrpm.sh
rpm-clean:
rm -rf ./rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SRPMS}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化