From 84435ca1aed7c162da35754b16e42acb783f618b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 16 Nov 2007 18:11:14 +0000 Subject: [PATCH] install recursion into conf folder git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6308 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index c914ca20b4..52c462e674 100644 --- a/Makefile.am +++ b/Makefile.am @@ -162,10 +162,12 @@ install-data-local: $(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \ done @if [ ! -f $(DESTDIR)$(PREFIX)/conf/freeswitch.xml ] ; then \ - $(INSTALL) conf/*.xml $(DESTDIR)$(PREFIX)/conf ; \ - $(INSTALL) conf/sip_profiles/*.xml $(DESTDIR)$(PREFIX)/conf/sip_profiles ; \ - $(INSTALL) conf/dialplan/*.xml $(DESTDIR)$(PREFIX)/conf/dialplan ; \ - $(INSTALL) conf/directory/*.xml $(DESTDIR)$(PREFIX)/conf/directory ; \ + for conffile in `find conf -name \*.xml && find conf -name \*.conf` ; do \ + dir=`echo $$conffile | sed -e 's|/[^/]*$$||'`; \ + filename=`echo $$conffile | sed -e 's|^.*/||'`; \ + test -d $(DESTDIR)$(PREFIX)/$$dir || $(mkinstalldirs) $(DESTDIR)$(prefix)/$$dir ; \ + $(INSTALL) $$dir/$$filename $(DESTDIR)$(PREFIX)/$$dir; \ + done ; \ fi .version: