1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/pear/Makefile.in
T
2000-05-01 22:38:42 +00:00

93 lines
2.6 KiB
Makefile

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
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) && \
$(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)
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 \
build/dynlib.mk \
build/shtool \
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' \
< $(srcdir)/php-config.in > $(bindir)/php-config.tmp && \
chmod +x $(bindir)/php-config.tmp && \
mv $(bindir)/php-config.tmp $(bindir)/php-config && \
cp $(srcdir)/phpextdist $(bindir)/phpextdist
SRC_HEADERS = \
php.h \
php_regex.h \
php3_compat.h \
safe_mode.h \
fopen-wrappers.h \
php_version.h \
php_globals.h \
php_reentrancy.h \
php_ini.h \
SAPI.h
BUILD_HEADERS = \
php_config.h \
Zend/zend_config.h \
build-defs.h
STANDARD_HEADERS = \
php_output.h
HEADER_DIRS = \
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" && \
(cd $(top_srcdir) && cp $(SRC_HEADERS) $(phpincludedir)) && \
(cd $(top_srcdir)/ext/standard && cp *.h $(phpincludedir)/ext/standard) && \
(cd $(top_srcdir) && cp regex/regex.h regex/regex_extra.h $(phpincludedir)/regex) && \
(cd $(top_srcdir) && cp TSRM/TSRM.h $(phpincludedir)/TSRM) && \
(cd $(top_srcdir)/Zend && cp *.h $(phpincludedir)/Zend) && \
(cd $(top_builddir) && cp $(BUILD_HEADERS) $(phpincludedir))