[Freeswitch-svn] [commit] r7669 - freeswitch/trunk/src/mod
Freeswitch SVN
anthm at freeswitch.org
Mon Feb 18 14:41:08 EST 2008
Author: anthm
Date: Mon Feb 18 14:41:08 2008
New Revision: 7669
Modified:
freeswitch/trunk/src/mod/Makefile.am
Log:
up
Modified: freeswitch/trunk/src/mod/Makefile.am
==============================================================================
--- freeswitch/trunk/src/mod/Makefile.am (original)
+++ freeswitch/trunk/src/mod/Makefile.am Mon Feb 18 14:41:08 2008
@@ -7,7 +7,7 @@
@set fnord $$MAKEFLAGS; amf=$$2; \
target=`echo $@ | sed -e 's|^.*-||'`; \
modname=`echo $@ | sed -e 's|-.*||'`; \
- confmoddir=`cat $(switch_builddir)/modules.conf | sed -e 's| ||' | grep $$modname$$ | sed -e 's|#||' `; \
+ confmoddir=`cat $(switch_builddir)/modules.conf | sed -e 's| ||' | grep $$modname$$ | sed -e 's|#||' | head -1`; \
if test -z "$$confmoddir" ; then moddir=$@ ; else \
if test -d "$(switch_srcdir)/src/mod/$$confmoddir" ; then \
moddir="$(switch_srcdir)/src/mod/$$confmoddir" ; else \
@@ -15,14 +15,18 @@
fi ; \
fi ; \
if test -z "$$target" ; then target="all" ; fi ; \
- echo ;\
- echo making $$target $$modname ;\
- (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;)\
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
- test -z "$$fail"
+ if ! test -d "$$moddir" ; then echo ; echo "WARNING $$moddir does not exist, skipping" ; else \
+ echo ;\
+ echo making $$target $$modname ;\
+ (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;) || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ fi; \
+ test -z "$$fail" ;
.DEFAULT:
@if test -z "`echo $@ | grep all`"; then $(MAKE) $(AM_MAKEFLAGS) $@-all ; else echo Unknown target `echo $@ | sed -e 's|-all||'`; exit 1; fi
+
+
+
More information about the Freeswitch-svn
mailing list