From 882a4a12841d0fd764304ad06702cebe4b6aa6ae Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 20 Aug 2008 13:23:41 +0000 Subject: [PATCH] install python applications' audio files git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1062 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/ivr/Makefile.ivr_application | 16 +++++++++++++++- apps/mailbox/Makefile | 2 ++ apps/pin_collect/Makefile | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/apps/ivr/Makefile.ivr_application b/apps/ivr/Makefile.ivr_application index 58ceeb3c..57941124 100644 --- a/apps/ivr/Makefile.ivr_application +++ b/apps/ivr/Makefile.ivr_application @@ -4,6 +4,8 @@ COREPATH ?= ../../core IVRPATH ?= ../ivr +AUDIO_FILES=$(notdir $(wildcard wav/*.wav)) + include $(COREPATH)/../Makefile.defs include $(IVRPATH)/Makefile.defs @@ -37,7 +39,7 @@ compile: python${PYTHON_VERSION} $(IVRPATH)/py_comp -q . .PHONY: install -install: all +install: all $(extra_install) install -d $(DESTDIR)${BASEDIR}/${LIB_INSTALLDIR} install -m ${LIB_PERMISSIONS} *.pyc $(DESTDIR)${BASEDIR}/${LIB_INSTALLDIR} install -d $(DESTDIR)${BASEDIR}/${LIB_INSTALLDIR}/${LIBDIR} @@ -55,6 +57,18 @@ install-cfg: < $$r > $(DESTDIR)$(cfg-target)$$r; \ done +$(DESTDIR)(audio-prefix)/$(audio-dir): + mkdir -p $(DESTDIR)$(audio-prefix)/$(audio-dir) + +.PHONY: $(NAME)_audio +$(NAME)_audio: $(DESTDIR)$(audio-prefix)/$(audio-dir) + mkdir -p $(DESTDIR)$(audio-prefix)/$(audio-dir)$(NAME) + -@for f in $(AUDIO_FILES) ; do \ + if [ -n "wav/$$f" ]; then \ + $(INSTALL-TOUCH) $(DESTDIR)$(audio-prefix)/$(audio-dir)$(NAME)/$$f; \ + $(INSTALL-AUDIO) wav/$$f $(DESTDIR)$(audio-prefix)/$(audio-dir)$(NAME)/$$f; \ + fi ; \ + done uninstall: @echo "please remove the files from $(DESTDIR)${LIB_INSTALLDIR} manually." diff --git a/apps/mailbox/Makefile b/apps/mailbox/Makefile index 1e1533b9..c7dd507f 100644 --- a/apps/mailbox/Makefile +++ b/apps/mailbox/Makefile @@ -4,5 +4,7 @@ VERSION=2.2.0-1 LIBDIR=imap_mailbox +extra_install = $(NAME)_audio + include ../ivr/Makefile.ivr_application diff --git a/apps/pin_collect/Makefile b/apps/pin_collect/Makefile index e90cd6be..62cdbd3a 100644 --- a/apps/pin_collect/Makefile +++ b/apps/pin_collect/Makefile @@ -4,5 +4,7 @@ VERSION=2.3.0-1 LIBDIR=. +extra_install = $(NAME)_audio + include ../ivr/Makefile.ivr_application