]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make modules building handle whitespace after modname in modules.conf (reported by...
authorMichael Jerris <mike@jerris.com>
Thu, 25 Oct 2007 14:13:42 +0000 (14:13 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 25 Oct 2007 14:13:42 +0000 (14:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6050 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/Makefile.am

index d8c42c60096d3fc7e2c4a6bfa1ca6209cab1104e..1dc7b594089aac4d8c17de44036f123f534a0779 100644 (file)
@@ -7,7 +7,7 @@ $(OUR_MODULES) $(OUR_CLEAN_MODULES) $(OUR_INSTALL_MODULES) $(OUR_UNINSTALL_MODUL
        @set fnord $$MAKEFLAGS; amf=$$2; \
        target=`echo $@ | sed -e 's|^.*-||'`; \
        modname=`echo $@ | sed -e 's|-.*||'`; \
-       confmoddir=`cat $(switch_builddir)/modules.conf | grep $$modname$$ | sed -e 's|#||' `; \
+       confmoddir=`cat $(switch_builddir)/modules.conf | grep $$modname | sed -e 's|#||' | sed -e 's| ||' `; \
        if test -z "$$confmoddir" ; then moddir=$@ ; else  \
                if test -d  "$(switch_srcdir)/src/mod/$$confmoddir" ; then \
                        moddir="$(switch_srcdir)/src/mod/$$confmoddir" ; else \
@@ -17,7 +17,7 @@ $(OUR_MODULES) $(OUR_CLEAN_MODULES) $(OUR_INSTALL_MODULES) $(OUR_UNINSTALL_MODUL
        if test -z "$$target" ; then target="all" ; fi ; \
        echo ;\
        echo making $$target $$modname ;\
-       (if test -f $$moddir/Makefile ; then \
+       (if test -f "$$moddir/Makefile" ; then \
                cd $$moddir && MODNAME=$$modname BASE=$(switch_builddir) $(MAKE) $(AM_MAKEFLAGS) $$target; else\
                cd $$moddir && MODNAME=$$modname BASE=$(switch_builddir) $(MAKE) $(AM_MAKEFLAGS) -f $(switch_builddir)/build/modmake.rules $$target ;\
        fi;)\