8 Star 20 Fork 7

anolis/dsms-engine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
RPM_NAME=dsms-engine
RPM_VERSION=V1.0.0
RPM_RELEASE=V1.0
RPM_ARCH=x86_64
RPM_BUILD_DIR=$(shell pwd)/rpmbuild
RPM_SPEC_FILE=$(RPM_BUILD_DIR)/SPECS/$(RPM_NAME).spec
.PHONY: clean build
clean:
rm -rf target
rm -rf $(RPM_BUILD_DIR)
mvn clean
build: clean
mvn clean package -DskipTests
mkdir -p $(RPM_BUILD_DIR)/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
mkdir -p $(RPM_BUILD_DIR)/BUILD/dsms-engine/
cp sql/dsms-engine_init.sql $(RPM_BUILD_DIR)/BUILD/dsms-engine/
cp build/dsms-engine.service $(RPM_BUILD_DIR)/BUILD/dsms-engine/
cp build/start.sh $(RPM_BUILD_DIR)/BUILD/dsms-engine/
find dsms-engine-application/target -type f -name "*.jar" -exec cp {} $(RPM_BUILD_DIR)/BUILD/dsms-engine/ \;
sed -e "s/@RPM_NAME@/$(RPM_NAME)/g" \
-e "s/@RPM_VERSION@/$(RPM_VERSION)/g" \
-e "s/@RPM_RELEASE@/$(RPM_RELEASE)/g" \
-e "s/@RPM_ARCH@/$(RPM_ARCH)/g" \
-e "s|@RPM_BUILD_DIR@|$(RPM_BUILD_DIR)|g" \
build/dsms-engine.spec > $(RPM_SPEC_FILE)
rpmbuild -bb $(RPM_SPEC_FILE)
mkdir target
find $(RPM_BUILD_DIR)/RPMS -type f -name "*.rpm" -exec cp {} ./target \;
rm -rf $(RPM_BUILD_DIR)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/anolis/dsms-engine.git
git@gitee.com:anolis/dsms-engine.git
anolis
dsms-engine
dsms-engine
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385