|
|
|
|
@ -2,52 +2,7 @@
|
|
|
|
|
NAME=conf_auth
|
|
|
|
|
VERSION=2.2.0-1
|
|
|
|
|
|
|
|
|
|
PYTHON_VERSION=2.3
|
|
|
|
|
|
|
|
|
|
LIB_INSTALLDIR="/usr/local/lib/sems/ivr"
|
|
|
|
|
TARBALL_PREFIX=sems-app-${NAME}
|
|
|
|
|
TARBALL="${TARBALL_PREFIX}-${VERSION}.tar.gz"
|
|
|
|
|
|
|
|
|
|
BASEDIR?=${basedir}
|
|
|
|
|
|
|
|
|
|
GROUP="root"
|
|
|
|
|
OWNER="root"
|
|
|
|
|
|
|
|
|
|
BIN_PERMISSIONS="755"
|
|
|
|
|
LIB_PERMISSIONS="644"
|
|
|
|
|
|
|
|
|
|
PYCHECKERARGS = --stdlib
|
|
|
|
|
PYCHECKERDOCARGS = --classdoc --funcdoc
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
all: clean compile
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
find . -iname "*\.pyc" -o -iname "*\.py~" | xargs rm -f
|
|
|
|
|
rm -f ${TARBALL_PREFIX}*.tar.gz
|
|
|
|
|
|
|
|
|
|
compile:
|
|
|
|
|
/usr/bin/python${PYTHON_VERSION} /usr/lib/python${PYTHON_VERSION}/compileall.py -q .
|
|
|
|
|
|
|
|
|
|
install: all
|
|
|
|
|
install -d ${BASEDIR}/${LIB_INSTALLDIR}
|
|
|
|
|
install -m ${LIB_PERMISSIONS} -o ${OWNER} -g ${GROUP} *.pyc ${BASEDIR}/${LIB_INSTALLDIR}
|
|
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
|
@echo "please remove the files from ${LIB_INSTALLDIR} manually."
|
|
|
|
|
|
|
|
|
|
fulltest:
|
|
|
|
|
find | grep /Test | grep -v ".svn" | grep \\.py$$ | sed -e "s#^./##g" | bash -e -
|
|
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
@echo "nothing to check."
|
|
|
|
|
|
|
|
|
|
doccheck:
|
|
|
|
|
@echo "nothing to doccheck."
|
|
|
|
|
|
|
|
|
|
dist: all
|
|
|
|
|
tar -cvzf ${TARBALL} . --exclude=*.tar.gz \
|
|
|
|
|
--exclude=.svn \
|
|
|
|
|
--exclude=*~
|
|
|
|
|
LIBDIR=.
|
|
|
|
|
|
|
|
|
|
include ../ivr/Makefile.ivr_application
|
|
|
|
|
|
|
|
|
|
|