summaryrefslogtreecommitdiff
path: root/pear/Makefile.in
diff options
context:
space:
mode:
authorWilfredo Sanchez <wsanchez@php.net>2001-04-03 20:59:50 +0000
committerWilfredo Sanchez <wsanchez@php.net>2001-04-03 20:59:50 +0000
commit0df6e8dd88e7233e75683271b96a38bf7c4c6fef (patch)
treedf2629a47c454055dd0c7403d0d052a01a29b5f7 /pear/Makefile.in
parenta0a471e7a3eca3ec17655951b3020cf32570eb36 (diff)
downloadphp-git-0df6e8dd88e7233e75683271b96a38bf7c4c6fef.tar.gz
Add INSTALL_ROOT variable to specify install location.
Diffstat (limited to 'pear/Makefile.in')
-rw-r--r--pear/Makefile.in22
1 files changed, 11 insertions, 11 deletions
diff --git a/pear/Makefile.in b/pear/Makefile.in
index 938e9dd80c..7eb0a5aa35 100644
--- a/pear/Makefile.in
+++ b/pear/Makefile.in
@@ -100,16 +100,16 @@ PEAR_FILES = \
XML/RPC.php
install-data-local: PEAR.php
- @if $(mkinstalldirs) $(peardir); then \
+ @if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
for i in $(PEAR_SUBDIRS); do \
- (set -x;$(mkinstalldirs) $(peardir)/$$i); \
+ (set -x;$(mkinstalldirs) $(INSTALL_ROOT)$(peardir)/$$i); \
done; \
for i in $(PEAR_FILES); do \
dir=`echo $$i|sed 's%[^/][^/]*$$%%'`; \
- (set -x;$(INSTALL_DATA) $(srcdir)/$$i $(peardir)/$$dir); \
+ (set -x;$(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(peardir)/$$dir); \
done; \
for i in PEAR.php; do \
- (set -x;$(INSTALL_DATA) $$i $(peardir)); \
+ (set -x;$(INSTALL_DATA) $$i $(INSTALL_ROOT)$(peardir)); \
done; \
else \
cat $(srcdir)/install-pear.txt; \
@@ -137,15 +137,15 @@ BUILD_FILES = \
bin_SCRIPTS = phpize php-config pear
install-build:
- $(mkinstalldirs) $(phpbuilddir) $(bindir) && \
- (cd $(top_srcdir) && cp $(BUILD_FILES) $(phpbuilddir))
+ $(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
+ (cd $(top_srcdir) && cp $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
install-programs:
for prog in $(bin_SCRIPTS); do \
- $(INSTALL) -m 755 scripts/$$prog $(bindir)/$$prog; \
+ $(INSTALL) -m 755 scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
done; \
for prog in phpextdist; do \
- $(INSTALL) -m 755 $(srcdir)/scripts/$$prog $(bindir)/$$prog; \
+ $(INSTALL) -m 755 $(srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
done
HEADER_DIRS = \
@@ -161,13 +161,13 @@ HEADER_DIRS = \
install-headers:
-@for i in $(HEADER_DIRS); do \
- paths="$$paths $(phpincludedir)/$$i"; \
+ paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
done; \
$(mkinstalldirs) $$paths && \
echo "creating header file hierarchy" && \
for i in $(HEADER_DIRS); do \
- (cd $(top_srcdir)/$$i && cp -p *.h $(phpincludedir)/$$i; \
- cd $(top_builddir)/$$i && cp -p *.h $(phpincludedir)/$$i) 2>/dev/null || true; \
+ (cd $(top_srcdir)/$$i && cp -p *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ cd $(top_builddir)/$$i && cp -p *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
done
Makefile: Makefile.in $(top_builddir)/config.status