* Patch to Makefiles to allow a script to query the make envirnoment.

* 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
This commit is contained in:
Anthony Minessale II
2004-04-16 18:57:07 +00:00
parent d8a6763be4
commit 34e415222e
4 changed files with 16 additions and 3 deletions

View File

@@ -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

View File

@@ -100,3 +100,6 @@ depend: .depend
.depend:
../mkdep $(CFLAGS) `ls *.c`
env:
/bin/env

View File

@@ -173,3 +173,6 @@ depend: .depend
.depend:
../mkdep $(CFLAGS) `ls *.c`
env:
/bin/env

View File

@@ -44,3 +44,6 @@ depend: .depend
.depend:
../mkdep $(CFLAGS) `ls *.c`
env:
/bin/env