|
|
|
|
@ -8,15 +8,14 @@ include $(COREPATH)/../Makefile.defs
|
|
|
|
|
include $(IVRPATH)/Makefile.defs
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
LIB_INSTALLDIR?="/usr/local/lib/sems/ivr"
|
|
|
|
|
ivr-modules-dir?=lib/sems/ivr
|
|
|
|
|
|
|
|
|
|
LIB_INSTALLDIR?=$(modules-prefix)/$(ivr-modules-dir)
|
|
|
|
|
TARBALL_PREFIX=sems-app-${NAME}
|
|
|
|
|
TARBALL="${TARBALL_PREFIX}-${VERSION}.tar.gz"
|
|
|
|
|
|
|
|
|
|
BASEDIR?=${basedir}
|
|
|
|
|
|
|
|
|
|
GROUP="root"
|
|
|
|
|
OWNER="root"
|
|
|
|
|
|
|
|
|
|
BIN_PERMISSIONS="755"
|
|
|
|
|
LIB_PERMISSIONS="644"
|
|
|
|
|
|
|
|
|
|
@ -40,9 +39,9 @@ compile:
|
|
|
|
|
.PHONY: install
|
|
|
|
|
install: all
|
|
|
|
|
install -d ${BASEDIR}/${LIB_INSTALLDIR}
|
|
|
|
|
install -m ${LIB_PERMISSIONS} -o ${OWNER} -g ${GROUP} *.pyc ${BASEDIR}/${LIB_INSTALLDIR}
|
|
|
|
|
install -m ${LIB_PERMISSIONS} *.pyc ${BASEDIR}/${LIB_INSTALLDIR}
|
|
|
|
|
install -d ${BASEDIR}/${LIB_INSTALLDIR}/${LIBDIR}
|
|
|
|
|
install -m ${LIB_PERMISSIONS} -o ${OWNER} -g ${GROUP} ${LIBDIR}/*.pyc ${BASEDIR}/${LIB_INSTALLDIR}/${LIBDIR}
|
|
|
|
|
install -m ${LIB_PERMISSIONS} ${LIBDIR}/*.pyc ${BASEDIR}/${LIB_INSTALLDIR}/${LIBDIR}
|
|
|
|
|
|
|
|
|
|
.PHONY: install-cfg
|
|
|
|
|
install-cfg:
|
|
|
|
|
@ -50,7 +49,10 @@ install-cfg:
|
|
|
|
|
-@for r in $(module_conf_files); do \
|
|
|
|
|
echo installing $$r ; \
|
|
|
|
|
$(INSTALL-TOUCH) $(cfg-prefix)/$(cfg-dir)$$r ; \
|
|
|
|
|
$(INSTALL-CFG) $$r $(cfg-prefix)/$(cfg-dir)$$r; \
|
|
|
|
|
sed -e "s#/usr/.*lib/sems/audio/#$(audio-target)#g" \
|
|
|
|
|
-e "s#/usr/.*lib/sems/plug-in/#$(modules-target)#g" \
|
|
|
|
|
-e "s#/usr/.*etc/sems#$(cfg-target)#g" \
|
|
|
|
|
< $$r > $(cfg-prefix)/$(cfg-dir)$$r; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|