freeswitch/modmake.sh
Anthony Minessale e736eabb20 move gsm to automake and make it work in unix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@262 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-03 21:58:16 +00:00

25 lines
366 B
Bash
Executable File

#!/bin/sh
pwd=$1
shift
mod=$1
shift
make=`which gmake`
if [ -z $make ] ; then
make=`which make`
fi
end=`echo $mod | sed "s/^.*\///g"`
if [ -z $end ] ; then
end=$mod
fi
if [ -f $mod/Makefile ] ; then
MODNAME=$end $make -C $mod $@
else
echo "XX $make -f $pwd/generic_mod.mk -C $mod $@"
MODNAME=$end $make -f $pwd/generic_mod.mk -C $end $@
fi