From: Michael Jerris Date: Tue, 13 Mar 2007 17:46:44 +0000 (+0000) Subject: get the include directory right in generated makefiles for both in tree and out of... X-Git-Tag: v1.0-beta1~835 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fc04deed6e1b7994145c5a6cc1e432d288e9e48;p=thirdparty%2Ffreeswitch.git get the include directory right in generated makefiles for both in tree and out of tree modules git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4584 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/build/modmake.rules.in b/build/modmake.rules.in index 2c0a24fae1..64ac624f0f 100644 --- a/build/modmake.rules.in +++ b/build/modmake.rules.in @@ -48,9 +48,10 @@ distclean: clean local_distclean extraclean: distclean local_extraclean Makefile: - @if test ! -f $@; then \ + if test ! -f $@; then \ echo MODNAME=$(MODNAME) > Makefile ; \ - echo include $(switch_srcdir)/build/modmake.rules >> Makefile ; \ + if ! pwd | grep $(switch_srcdir)/src/mod ; then rulesdir=$(switch_srcdir) ; else rulesdir=../../../.. ; fi ; \ + echo include $$rulesdir/build/modmake.rules >> Makefile ; \ fi ; $(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).o $(LOCAL_OBJS) $(SOURCEFILE)