mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 20:08:21 +08:00
39d6abaf74
commit 98dfe6d58a00a825465ada1255098c1f4149f703 Author: wanghaibin <wanghaibin@qiyi.com> Date: Fri Jun 5 23:21:04 2020 +0800 modify acl-libs commit 04d9b89f8b7427825eb45e0dc3b25a5274a627f3 Author: wanghaibin <wanghaibin@qiyi.com> Date: Fri Jun 5 23:13:46 2020 +0800 modify makefile commit d292ad9c3f6b6ad170e480950ff87c1954d03de8 Author: wanghaibin <wanghaibin@qiyi.com> Date: Fri Jun 5 23:08:10 2020 +0800 modify makefile commit 6f8d0739e9408e140720f127dbf3eab421082287 Author: wanghaibin <wanghaibin@qiyi.com> Date: Fri Jun 5 22:59:15 2020 +0800 modify master spec commit 3da0067873a28a35588ff550a77f6227297530cc Author: wanghaibin <wanghaibin@qiyi.com> Date: Fri Jun 5 22:47:09 2020 +0800 add master spec
28 lines
765 B
Makefile
28 lines
765 B
Makefile
##########################################################
|
|
#
|
|
# make PKG_NAME=acl-libs
|
|
# make PKG_NAME=acl-master
|
|
#
|
|
#########################################################
|
|
ifndef $(PKG_NAME)
|
|
PKG_NAME := acl-libs
|
|
endif
|
|
PKG_VERSION = $(shell grep '^Version:' $(PKG_NAME).spec | awk '{print $$2}')
|
|
|
|
PWD = $(shell pwd)
|
|
|
|
all: libs
|
|
|
|
tar:
|
|
@./control pack ${PKG_NAME}
|
|
|
|
libs: tar
|
|
@mkdir -p {BUILD,BUILDROOT,SRPMS,SPECS}
|
|
@rpmbuild --define "_topdir ${PWD}" --define "_sourcedir ${PWD}" --define "_rpmdir ${PWD}" -bb $(PKG_NAME).spec
|
|
@echo Binary PRM for $(PKG_NAME) has been created under ${PWD}/`rpm --eval '%{_arch}'`
|
|
|
|
clean cl:
|
|
@rm -rf $(PKG_NAME)-$(PKG_VERSION)
|
|
@rm -rf *.tar.gz
|
|
@rm -rf BUILD BUILDROOT SRPMS SPECS `rpm --eval '%{_arch}'`
|