]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
added DESTDIR to esl makefiles so that it can be used during rpm building
authorMichal Bielicki - cypromis <michal.bielicki@seventhsignal.de>
Wed, 16 Feb 2011 19:54:57 +0000 (20:54 +0100)
committerMichal Bielicki - cypromis <michal.bielicki@seventhsignal.de>
Wed, 16 Feb 2011 19:54:57 +0000 (20:54 +0100)
libs/esl/php/Makefile
libs/esl/python/Makefile

index 44fdd22dae2348342c5002d957769d6d690d0849..e970ff7d826c0b6aabe061750d37f097f873fbc3 100644 (file)
@@ -25,6 +25,6 @@ swigclean:
 reswig:        swigclean esl_wrap.cpp
 
 install: ESL.so
-       cp ESL.so $(shell php-config --extension-dir)
-       cp ESL.php $(shell php -r 'echo ini_get("include_path");' | cut -d: -f2)
-       echo 'extension=ESL.so' >> $(shell php-config --configure-options | tr " " "\n" | grep -- --with-config-file-scan-dir | cut -f2 -d=)/esl.ini
+       cp ESL.so $(DESTDIR)/$(shell php-config --extension-dir)
+       cp ESL.php /$(DESTDIR)/$(shell php -r 'echo ini_get("include_path");' | cut -d: -f2)
+       echo 'extension=ESL.so' >> $(DESTDIR)/$(shell php-config --configure-options | tr " " "\n" | grep -- --with-config-file-scan-dir | cut -f2 -d=)/esl.ini
index 6b7147bede4fb8aae5d615b6c799e66d5a8d2095..0d9ca84cbd33a58b0f92e95396a71121e1aa6eea 100644 (file)
@@ -1,6 +1,6 @@
 LOCAL_CFLAGS=`python ./python-config --includes`
 LOCAL_LDFLAGS=`python ./python-config --ldflags`
-SITE_DIR=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
+SITE_DIR=$(DESTDIR)/`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
 
 all: _ESL.so