php-src/pear/Makefile.in

103 lines
2.4 KiB
Makefile
Raw Normal View History

install_targets = install-data-local install-headers install-build
include $(top_srcdir)/build/rules.mk
peardir=$(PEAR_INSTALLDIR)
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 \
PEAR.php \
PEAR/Installer.php
install-data-local:
@if $(mkinstalldirs) $(peardir); then \
for i in $(PEAR_SUBDIRS); do \
$(mkinstalldirs) $(peardir)/$$i; \
done; \
for i in $(PEAR_FILES); do \
2000-05-06 09:41:14 +08:00
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
BUILD_FILES = \
pear/pear.m4 \
build/fastgen.sh \
build/library.mk \
build/ltlib.mk \
build/program.mk \
build/rules.mk \
build/rules_pear.mk \
2000-05-01 10:57:50 +08:00
build/dynlib.mk \
build/shtool \
2000-05-03 04:10:46 +08:00
dynlib.m4 \
acinclude.m4
install-build:
-@$(mkinstalldirs) $(builddir) $(bindir) && \
(cd $(top_srcdir) && cp $(BUILD_FILES) $(builddir)) && \
echo "creating phpize" && \
sed \
-e 's#@PREFIX@#$(prefix)#' \
< $(srcdir)/phpize.in > $(bindir)/phpize.tmp && \
chmod +x $(bindir)/phpize.tmp && \
mv $(bindir)/phpize.tmp $(bindir)/phpize && \
echo "creating php-config" && \
sed \
-e 's#@PREFIX@#$(prefix)#' \
-e 's#@PHPINCLUDEDIR@#$(phpincludedir)#g' \
-e 's#@EXTENSION_DIR@#$(EXTENSION_DIR)#g' \
< $(srcdir)/php-config.in > $(bindir)/php-config.tmp && \
chmod +x $(bindir)/php-config.tmp && \
2000-03-27 03:46:42 +08:00
mv $(bindir)/php-config.tmp $(bindir)/php-config && \
echo "creating pear" && \
sed \
-e 's#@PREFIX@#$(prefix)#' \
-e 's#@EXTENSION_DIR@#$(EXTENSION_DIR)#g' \
-e 's#@PEAR_INSTALLDIR@#$(PEAR_INSTALLDIR)#g' \
< $(srcdir)/pear.in > $(bindir)/pear.tmp && \
chmod +x $(bindir)/pear.tmp && \
mv $(bindir)/pear.tmp $(bindir)/pear && \
2000-03-27 03:46:42 +08:00
cp $(srcdir)/phpextdist $(bindir)/phpextdist
HEADER_DIRS = \
2000-05-03 04:10:46 +08:00
/ \
Zend \
TSRM \
ext/standard \
2000-06-24 23:45:24 +08:00
ext/xml \
ext/xml/expat/xmlparse \
ext/xml/expat/xmltok \
main \
regex
install-headers:
-@for i in $(HEADER_DIRS); do \
paths="$$paths $(phpincludedir)/$$i"; \
done; \
$(mkinstalldirs) $$paths && \
echo "creating header file hierarchy" && \
2000-05-03 04:10:46 +08:00
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; \
2000-05-03 04:10:46 +08:00
done