2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 04:50:21 +00:00
confluent/confluent_xcat/Makefile
Victor Hu 00a33b05b7 Create a new subdirectory for xcat related glue code which produces
a confluent_xcat RPM.  This holds the related pieces that xCAT requires
to use confluent and allows confluent to be standalone install.
The confluent_xcat rpm has a dependency on confluent_server.

The structure of confluent_xcat directory follows the other directories
under the confluent project. (_server,_client,_common)
2015-02-02 16:47:27 -05:00

33 lines
715 B
Makefile

PKGNAME=confluent_xcat
VERNUM=`cat VERSION`
all: clean prepare confluent_xcat
prepare:
@echo [${PKGNAME}] preparing...
mkdir -p rpmbuild/BUILD
mkdir -p rpmbuild/BUILDROOT
mkdir -p rpmbuild/RPMS
mkdir -p rpmbuild/SOURCES
mkdir -p rpmbuild/SPECS
mkdir -p rpmbuild/SRPMS
confluent_xcat:
@echo [${PKGNAME}] building...
sed -e "s/#VERSION#/${VERNUM}/" setup.py.tmpl > setup.py
python setup.py sdist > /dev/null 2>&1
cp dist/*.tar.gz rpmbuild/SOURCES
sed -e "s/#VERSION#/${VERNUM}/" ${PKGNAME}.spec.tmpl > rpmbuild/SPECS/${PKGNAME}.spec
rpmbuild -ba rpmbuild/SPECS/${PKGNAME}.spec
clean:
@echo [${PKGNAME}] cleaning...
rm -rf rpmbuild
rm -f setup.py
rm -rf ${PKGNAME}.egg-info
rm -rf dist