summaryrefslogtreecommitdiff
path: root/pear/Makefile.frag
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-03-07 14:20:02 +0000
committerSascha Schumann <sas@php.net>2002-03-07 14:20:02 +0000
commit9d9d39a0de3bec962c343051011f5a2ed7d7b242 (patch)
tree09eb178e4b55da1d73d059067a5ed96ecb2c6464 /pear/Makefile.frag
parent0e17eea049ba7c77351d2166e89524388922ce80 (diff)
downloadphp-git-9d9d39a0de3bec962c343051011f5a2ed7d7b242.tar.gz
Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net directly. An introduction can be found on http://schumann.cx/buildv5.txt
Diffstat (limited to 'pear/Makefile.frag')
-rw-r--r--pear/Makefile.frag179
1 files changed, 179 insertions, 0 deletions
diff --git a/pear/Makefile.frag b/pear/Makefile.frag
new file mode 100644
index 0000000000..bb35f75e7e
--- /dev/null
+++ b/pear/Makefile.frag
@@ -0,0 +1,179 @@
+
+pear_install_targets = \
+ install-data-local \
+ install-headers \
+ install-build \
+ install-programs
+
+peardir=$(PEAR_INSTALLDIR)
+
+PEAR_SUBDIRS = \
+ Archive \
+ Console \
+ Crypt \
+ Date \
+ DB \
+ File \
+ HTML \
+ HTTP \
+ Image \
+ Mail \
+ Net \
+ PEAR \
+ Schedule \
+ XML
+
+PEAR_FILES = \
+ Archive/Tar.php \
+ Console/Getopt.php \
+ Crypt/CBC.php \
+ Crypt/HCEMD5.php \
+ Date/Calc.php \
+ Date/Human.php \
+ DB.php \
+ DB/common.php \
+ DB/fbsql.php \
+ DB/ibase.php \
+ DB/ifx.php \
+ DB/msql.php \
+ DB/mssql.php \
+ DB/mysql.php \
+ DB/oci8.php \
+ DB/odbc.php \
+ DB/pgsql.php \
+ DB/storage.php \
+ DB/sybase.php \
+ File/Find.php \
+ File/Passwd.php \
+ File/SearchReplace.php \
+ HTML/Common.php \
+ HTML/Form.php \
+ HTML/IT.php \
+ HTML/ITX.php \
+ HTML/IT_Error.php \
+ HTML/Page.php \
+ HTML/Processor.php \
+ HTML/Select.php \
+ HTML/Table.php \
+ HTTP.php \
+ HTTP/Compress.php \
+ Mail.php \
+ Mail/RFC822.php \
+ Mail/sendmail.php \
+ Mail/smtp.php \
+ Net/Curl.php \
+ Net/Dig.php \
+ Net/SMTP.php \
+ Net/Socket.php \
+ PEAR.php \
+ PEAR/Autoloader.php \
+ PEAR/Common.php \
+ PEAR/Config.php \
+ PEAR/Dependency.php \
+ PEAR/Installer.php \
+ PEAR/Packager.php \
+ PEAR/Registry.php \
+ PEAR/Remote.php \
+ PEAR/Uploader.php \
+ Schedule/At.php \
+ System.php \
+ XML/Parser.php
+
+PEAR_COMMAND_LIBS = \
+ pearcmd-common.php \
+ pearcmd-help.php \
+ pearcmd-info.php \
+ pearcmd-install.php \
+ pearcmd-list.php \
+ pearcmd-package.php \
+ pearcmd-remote-list.php \
+ pearcmd-show-config.php \
+ pearcmd-uninstall.php
+
+install-data-local:
+ @if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
+ for i in $(PEAR_SUBDIRS); do \
+ $(mkinstalldirs) $(INSTALL_ROOT)$(peardir)/$$i; \
+ done; \
+ for i in $(PEAR_FILES); do \
+ echo "Installing $$i"; \
+ dir=`echo $$i|sed 's%[^/][^/]*$$%%'`; \
+ $(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(peardir)/$$dir; \
+ done; \
+ else \
+ cat $(srcdir)/install-pear.txt; \
+ exit 5; \
+ fi
+
+phpincludedir = $(includedir)/php
+phpbuilddir = $(prefix)/lib/php/build
+
+BUILD_FILES = \
+ pear/pear.m4 \
+ build/mkdep.awk \
+ build/shtool \
+ Makefile.global \
+ scan_makefile_in.awk \
+ acinclude.m4
+
+bin_SCRIPTS = phpize php-config pear pear-get pearize phptar
+
+install-build:
+ @echo "Installing build environment"
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
+ (cd $(top_srcdir) && cp $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
+
+install-programs:
+ @for prog in $(bin_SCRIPTS); do \
+ echo "Installing program: $$prog"; \
+ $(INSTALL) -m 755 $(builddir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
+ done; \
+ for prog in phpextdist; do \
+ echo "Installing program: $$prog"; \
+ $(INSTALL) -m 755 $(srcdir)/scripts/$$prog $(INSTALL_ROOT)$(bindir)/$$prog; \
+ done; \
+ for lib in $(PEAR_COMMAND_LIBS); do \
+ echo "Installing program library: $$lib"; \
+ $(INSTALL) -m 644 $(srcdir)/scripts/$$lib $(INSTALL_ROOT)$(bindir)/$$lib; \
+ done
+
+HEADER_DIRS = \
+ / \
+ Zend \
+ TSRM \
+ ext/standard \
+ ext/session \
+ ext/xml \
+ ext/xml/expat/xmlparse \
+ ext/xml/expat/xmltok \
+ main \
+ regex
+
+install-headers:
+ -@for i in $(HEADER_DIRS); do \
+ paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
+ done; \
+ $(mkinstalldirs) $$paths && \
+ echo "Installing header files" && \
+ for i in $(HEADER_DIRS); do \
+ (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
+
+$(builddir)/scripts/pear: $(srcdir)/scripts/pear.in $(top_builddir)/config.status
+ (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
+
+$(builddir)/scripts/pear-get: $(srcdir)/scripts/pear-get.in $(top_builddir)/config.status
+ (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
+
+$(builddir)/scripts/phpize: $(srcdir)/scripts/phpize.in $(top_builddir)/config.status
+ (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
+
+$(builddir)/scripts/phptar: $(srcdir)/scripts/phptar.in $(top_builddir)/config.status
+ (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
+
+$(builddir)/scripts/pearize: $(srcdir)/scripts/pearize.in $(top_builddir)/config.status
+ (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
+
+$(builddir)/scripts/php-config: $(srcdir)/scripts/php-config.in $(top_builddir)/config.status
+ (CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)