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)
|
|
|
|
|
2022-07-13 19:00:31 +08:00
|
|
|
$(shell chmod +x control)
|
2022-07-13 18:57:58 +08:00
|
|
|
DEBUGINFO=$(shell ./control debuginfo )
|
|
|
|
|
2020-06-05 23:25:57 +08:00
|
|
|
all: libs
|
2017-06-06 19:16:58 +08:00
|
|
|
|
2022-07-13 18:57:58 +08:00
|
|
|
debuginfo:
|
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}
|
2023-03-13 11:08:28 +08:00
|
|
|
@rpmbuild --define "_topdir ${PWD}" --define "_sourcedir ${PWD}" \
|
|
|
|
--define "_rpmdir ${PWD}" ${DEBUGINFO} -bb $(PKG_NAME).spec
|
|
|
|
@echo Binary PRM for $(PKG_NAME) has been created under ${PWD}/ \
|
|
|
|
`rpm --eval '%{_arch}'`
|
2017-06-06 19:16:58 +08:00
|
|
|
|
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}'`
|