git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7673
d0543943-73ff-0310-b7d9-
9358b9ac24b2
fi ; \
fi ; \
if test -z "$$target" ; then target="all" ; fi ; \
- if ! test -d "$$moddir" ; then echo ; echo "WARNING $$moddir does not exist, skipping" ; else \
+ if ! test -f $$moddir/$$modname.c && ! test -f $$moddir/$$modname.cpp ; \
+ then echo ; echo "WARNING $$modname is not a valid FreeSWITCH module dir, skipping it....." ; else \
echo ;\
echo making $$target $$modname ;\
(if test -f "$$moddir/Makefile" ; then \