allow menuselect to be a symlink to a checkout
authorRussell Bryant <russell@russellbryant.com>
Wed, 28 Jun 2006 19:55:05 +0000 (19:55 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 28 Jun 2006 19:55:05 +0000 (19:55 +0000)
(second part of issue #7436, Corydon76)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index df7f839..ac9fad1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -880,7 +880,7 @@ menuselect: menuselect/menuselect makeopts.xml
        -@menuselect/menuselect ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} menuselect.makeopts && echo "menuselect changes saved!" || echo "menuselect changes NOT saved!"
 
 menuselect/menuselect: menuselect/menuselect.c menuselect/menuselect_curses.c menuselect/menuselect.h menuselect/linkedlists.h config.status mxml/libmxml.a $(MENUSELECT_OBJS)
-       @CFLAGS="-include ../include/asterisk/autoconfig.h" $(MAKE) -C menuselect menuselect
+       @CFLAGS="-include $(PWD)/include/asterisk/autoconfig.h" PARENTSRC="$(PWD)" $(MAKE) -C menuselect menuselect
 
 mxml/libmxml.a:
        @cd mxml && unset CFLAGS LIBS && test -f config.h || ./configure