2020-06-05 23:25:57 +08:00
|
|
|
##########################################################
|
|
|
|
#
|
|
|
|
# make PKG_NAME=acl-libs
|
|
|
|
# make PKG_NAME=acl-master
|
|
|
|
#
|
|
|
|
#########################################################
|
|
|
|
ifndef $(PKG_NAME)
|
|
|
|
PKG_NAME := acl-libs
|
|
|
|
endif
|
2017-06-06 19:16:58 +08:00
|
|
|
PKG_VERSION = $(shell grep '^Version:' $(PKG_NAME).spec | awk '{print $$2}')
|
|
|
|
|
|
|
|
PWD = $(shell pwd)
|
|
|
|
|
2020-06-05 23:25:57 +08:00
|
|
|
all: libs
|
2017-06-06 19:16:58 +08:00
|
|
|
|
|
|
|
tar:
|
2020-06-05 23:25:57 +08:00
|
|
|
@./control pack ${PKG_NAME}
|
2017-06-06 19:16:58 +08:00
|
|
|
|
2020-06-05 23:25:57 +08:00
|
|
|
libs: tar
|
2017-06-06 19:16:58 +08:00
|
|
|
@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}'`
|
|
|
|
|
2017-10-16 10:30:59 +08:00
|
|
|
clean cl:
|
2017-06-06 19:16:58 +08:00
|
|
|
@rm -rf $(PKG_NAME)-$(PKG_VERSION)
|
2020-06-05 23:25:57 +08:00
|
|
|
@rm -rf *.tar.gz
|
2017-06-06 19:16:58 +08:00
|
|
|
@rm -rf BUILD BUILDROOT SRPMS SPECS `rpm --eval '%{_arch}'`
|