utt/app/dist/spec/Makefile
pawelk 9b57c4d68c Kilka zmian technicznych, troche porzadku oraz uaktualnienie dystrybucji dla rpma.
git-svn-id: svn://atos.wmid.amu.edu.pl/utt@48 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
2008-05-09 06:49:43 +00:00

27 lines
606 B
Makefile

# this makefile will build rpm
DIR=$(shell pwd)
ifndef UTT_DIST_DIR
UTT_DIST_DIR=${DIR}
endif
_RPM_FROOT=${DIR}/rmp_root
_UTT_ROOT=${_RPM_FROOT}/usr/local
# default task
.PHONY: rpm
rpm:
if test -d ${_RPM_FROOT}; then rm -fr ${_RMP_FROOT}; fi
mkdir -p ${_UTT_ROOT}
cp -rf ${UTT_DIST_DIR}/* ${_UTT_ROOT}/
mkdir -p ${_UTT_ROOT}/cnf
mv ${_UTT_ROOT}/etc/utt/*.conf ${_UTT_ROOT}/cnf/
${DIR}/../common/prepare_conf.sh ${_UTT_ROOT}/cnf ${_UTT_ROOT}/etc/utt \\\/usr\\\/local
rm -rf ${_UTT_ROOT}/cnf
cp ../files/* ${_UTT_ROOT}/
cd ${_RPM_FROOT}; rpmbuild -bb ${DIR}/utt.spec
rm -rf ${_RPM_FROOT}