1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
install_targets = install-data-local install-headers install-build
|
|
|
|
|
2000-04-30 11:20:09 +08:00
|
|
|
include $(top_srcdir)/build/rules.mk
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
peardir=$(prefix)/lib/php
|
|
|
|
pear_DBdir=$(prefix)/lib/php/DB
|
2000-04-23 12:47:45 +08:00
|
|
|
pear_Filedir=$(prefix)/lib/php/File
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
-@$(mkinstalldirs) $(peardir) $(pear_DBdir) && \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/DB.php $(peardir) && \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/DB/common.php $(pear_DBdir) && \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/DB/odbc.php $(pear_DBdir) && \
|
2000-02-18 04:22:56 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/DB/mysql.php $(pear_DBdir) && \
|
2000-03-28 00:35:01 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/DB/mssql.php $(pear_DBdir) && \
|
2000-02-18 04:22:56 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/DB/pgsql.php $(pear_DBdir) && \
|
2000-03-10 05:57:14 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/DB/storage.php $(pear_DBdir) && \
|
2000-03-28 00:21:15 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/HTTP.php $(peardir) && \
|
2000-04-24 03:19:56 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/File/Find.php $(pear_Filedir)
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
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 \
|
1999-12-30 10:59:53 +08:00
|
|
|
build/shtool \
|
2000-05-03 04:10:46 +08:00
|
|
|
dynlib.m4 \
|
1999-12-30 10:59:53 +08:00
|
|
|
acinclude.m4
|
|
|
|
|
|
|
|
install-build:
|
|
|
|
-@$(mkinstalldirs) $(builddir) $(bindir) && \
|
2000-04-30 11:20:09 +08:00
|
|
|
(cd $(top_srcdir) && cp $(BUILD_FILES) $(builddir)) && \
|
1999-12-30 10:59:53 +08:00
|
|
|
echo "creating phpize" && \
|
|
|
|
sed \
|
|
|
|
-e 's#@PREFIX@#$(prefix)#' \
|
2000-02-03 18:49:03 +08:00
|
|
|
< $(srcdir)/phpize.in > $(bindir)/phpize.tmp && \
|
|
|
|
chmod +x $(bindir)/phpize.tmp && \
|
|
|
|
mv $(bindir)/phpize.tmp $(bindir)/phpize && \
|
1999-12-30 10:59:53 +08:00
|
|
|
echo "creating php-config" && \
|
|
|
|
sed \
|
|
|
|
-e 's#@PREFIX@#$(prefix)#' \
|
|
|
|
-e 's#@PHPINCLUDEDIR@#$(phpincludedir)#g' \
|
2000-02-03 18:49:03 +08:00
|
|
|
< $(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 && \
|
|
|
|
cp $(srcdir)/phpextdist $(bindir)/phpextdist
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
HEADER_DIRS = \
|
2000-05-03 04:10:46 +08:00
|
|
|
/ \
|
1999-12-30 10:59:53 +08:00
|
|
|
Zend \
|
|
|
|
TSRM \
|
|
|
|
ext/standard \
|
|
|
|
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; \
|
|
|
|
done
|