9 Star 1 Fork 31

openEuler/env_check

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangcichen 提交于 2023-08-18 11:02 . add Makefile for mock compile
# Makefile for source rpm
SPECFILE := env_check.spec
NAME := env_check
VERSION := 0.1
.PHONY: help
help:
%:
@echo "Try make $@ or something like that"
@exit 1
sources: clean
tar -zcvf ${NAME}-${VERSION}.tar.gz ./*
source: sources
if test ! -d SOURCES; then mkdir SOURCES; fi
cp *.tar.gz SOURCES
srpm: source
if test ! -d BUILD/SRPM; then mkdir -p BUILD/SRPM; fi
mock --resultdir BUILD/SRPM --buildsrpm --spec ${SPECFILE} --sources SOURCES
rpm: srpm
if test ! -d BUILD/RPM; then mkdir -p BUILD/RPM; fi
mock --resultdir BUILD/RPM --rebuild BUILD/SRPM/${NAME}-*.src.rpm
clean ::
@rm -fr SOURCES BUILD *.tar.gz
sandwich:
@[ `id -u` -ne 0 ] && echo "What? Make it yourself." || echo Okay.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/env_check.git
git@gitee.com:openeuler/env_check.git
openeuler
env_check
env_check
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385