added DESTDIR to esl makefiles so that it can be used during rpm building
This commit is contained in:
parent
837c6ff6e8
commit
e8335f5880
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue