* Patch to Makefiles to allow a script to query the make envirnoment.
authorAnthony Minessale II <anthmct@yahoo.com>
Fri, 16 Apr 2004 18:57:07 +0000 (18:57 +0000)
committerAnthony Minessale II <anthmct@yahoo.com>
Fri, 16 Apr 2004 18:57:07 +0000 (18:57 +0000)
* contrib/scripts/astxs (The tool itself)
* see bug 1329

-Anthony Minessale (anthm)

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

Makefile
apps/Makefile
channels/Makefile
res/Makefile

index b71ba89..de52512 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -429,7 +429,6 @@ webvmail:
 
 mailbox:
        ./contrib/scripts/addmailbox 
-       
 
 rpm: __rpm
 
@@ -442,7 +441,7 @@ __rpm: _version
        cp -f redhat/asterisk /tmp/asterisk/etc/rc.d/init.d/ ; \
        sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk.spec > asterisk.spec ; \
        rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec
-       
+
 progdocs:
        doxygen contrib/asterisk-ng-doxygen
 
@@ -454,7 +453,6 @@ config:
                install -m 755 init.asterisk /etc/init.d/asterisk; \
        fi 
 
-       
 dont-optimize:
        $(MAKE) OPTIMIZE= K6OPT= install
 
@@ -467,3 +465,9 @@ depend: .depend
        ./mkdep ${CFLAGS} `ls *.c`
 
 FORCE:
+
+%_env:
+       make -C $(shell echo $@ | /bin/sed "s/_env//g") env
+
+env:
+       /bin/env
index ada6431..eb24b11 100755 (executable)
@@ -100,3 +100,6 @@ depend: .depend
 
 .depend:
        ../mkdep $(CFLAGS) `ls *.c`
+
+env:
+       /bin/env
index 8f0640c..fea205e 100755 (executable)
@@ -173,3 +173,6 @@ depend: .depend
 .depend:
        ../mkdep $(CFLAGS) `ls *.c`
 
+env:
+       /bin/env
+
index 9ba52b2..c39f0ff 100755 (executable)
@@ -44,3 +44,6 @@ depend: .depend
 
 .depend:
        ../mkdep $(CFLAGS) `ls *.c`
+
+env:
+       /bin/env