summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-02 22:28:12 +0000
committerSascha Schumann <sas@php.net>2000-05-02 22:28:12 +0000
commit9f6976d6d505d60be25b68e186cc1a0fa2d365cb (patch)
treee7f7a70eda31d8f422a086c47b4a3a21357581c0 /pear
parent515b7e74dfe6dd42bc3ae1d0e4afbc2ad63837a7 (diff)
downloadphp-git-9f6976d6d505d60be25b68e186cc1a0fa2d365cb.tar.gz
Complain loudly, if we were not able to install everything.
Diffstat (limited to 'pear')
-rw-r--r--pear/Makefile.in39
-rw-r--r--pear/install-pear.txt11
2 files changed, 38 insertions, 12 deletions
diff --git a/pear/Makefile.in b/pear/Makefile.in
index 76f93ac96f..39fbf582c8 100644
--- a/pear/Makefile.in
+++ b/pear/Makefile.in
@@ -4,20 +4,35 @@ install_targets = install-data-local install-headers install-build
include $(top_srcdir)/build/rules.mk
peardir=$(prefix)/lib/php
-pear_DBdir=$(prefix)/lib/php/DB
-pear_Filedir=$(prefix)/lib/php/File
+
+PEAR_SUBDIRS = \
+ DB \
+ File
+
+PEAR_FILES = \
+ DB.php \
+ DB/common.php \
+ DB/odbc.php \
+ DB/mysql.php \
+ DB/mssql.php \
+ DB/pgsql.php \
+ DB/storage.php \
+ HTTP.php \
+ File/Find.php
install-data-local:
- -@$(mkinstalldirs) $(peardir) $(pear_DBdir) $(pear_Filedir) && \
- $(INSTALL_DATA) $(srcdir)/DB.php $(peardir) && \
- $(INSTALL_DATA) $(srcdir)/DB/common.php $(pear_DBdir) && \
- $(INSTALL_DATA) $(srcdir)/DB/odbc.php $(pear_DBdir) && \
- $(INSTALL_DATA) $(srcdir)/DB/mysql.php $(pear_DBdir) && \
- $(INSTALL_DATA) $(srcdir)/DB/mssql.php $(pear_DBdir) && \
- $(INSTALL_DATA) $(srcdir)/DB/pgsql.php $(pear_DBdir) && \
- $(INSTALL_DATA) $(srcdir)/DB/storage.php $(pear_DBdir) && \
- $(INSTALL_DATA) $(srcdir)/HTTP.php $(peardir) && \
- $(INSTALL_DATA) $(srcdir)/File/Find.php $(pear_Filedir)
+ @if $(mkinstalldirs) $(peardir); then \
+ for i in $(PEAR_SUBDIRS); do \
+ $(mkinstalldirs) $(peardir)/$$i; \
+ done; \
+ for i in $(PEAR_FILES); do \
+ dir=`echo $$i|sed 's%[^/][^/]*$%%'`; \
+ $(INSTALL_DATA) $(srcdir)/$$i $(peardir)/$$dir; \
+ done; \
+ else \
+ cat $(srcdir)/install-pear.txt; \
+ exit 5; \
+ fi
phpincludedir = $(includedir)/php
builddir = $(prefix)/lib/php/build
diff --git a/pear/install-pear.txt b/pear/install-pear.txt
new file mode 100644
index 0000000000..3cb9338a40
--- /dev/null
+++ b/pear/install-pear.txt
@@ -0,0 +1,11 @@
++----------------------------------------------------------------------+
+| The installation process is incomplete. The following resources were |
+| not installed: |
+| |
+| Self-contained Extension Support |
+| PEAR: PHP Extension and Add-on Repository |
+| |
+| To install these components, become the superuser and execute: |
+| |
+| # make install-su |
++----------------------------------------------------------------------+