2003-01-28 18:59:12 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build environment install
|
|
|
|
#
|
|
|
|
|
|
|
|
phpincludedir = $(includedir)/php
|
2005-06-08 05:56:09 +08:00
|
|
|
phpbuilddir = $(libdir)/build
|
2003-01-28 18:59:12 +08:00
|
|
|
|
|
|
|
BUILD_FILES = \
|
|
|
|
scripts/phpize.m4 \
|
|
|
|
build/mkdep.awk \
|
2003-06-09 08:17:03 +08:00
|
|
|
build/scan_makefile_in.awk \
|
2005-01-20 09:41:20 +08:00
|
|
|
build/libtool.m4 \
|
2003-01-28 18:59:12 +08:00
|
|
|
Makefile.global \
|
2005-01-20 09:41:20 +08:00
|
|
|
acinclude.m4 \
|
2005-08-09 00:06:49 +08:00
|
|
|
ltmain.sh \
|
2005-08-31 15:00:22 +08:00
|
|
|
run-tests.php
|
2003-01-28 18:59:12 +08:00
|
|
|
|
2004-12-21 12:58:50 +08:00
|
|
|
BUILD_FILES_EXEC = \
|
2005-01-20 09:41:20 +08:00
|
|
|
build/shtool \
|
|
|
|
config.guess \
|
|
|
|
config.sub
|
2004-12-21 12:58:50 +08:00
|
|
|
|
2003-01-28 18:59:12 +08:00
|
|
|
bin_SCRIPTS = phpize php-config
|
2005-10-13 18:02:59 +08:00
|
|
|
man_PAGES = phpize php-config
|
2003-01-28 18:59:12 +08:00
|
|
|
|
|
|
|
install-build:
|
|
|
|
@echo "Installing build environment: $(INSTALL_ROOT)$(phpbuilddir)/"
|
|
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
|
2004-12-21 12:58:50 +08:00
|
|
|
(cd $(top_srcdir) && \
|
|
|
|
$(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \
|
|
|
|
$(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
|
2003-01-28 18:59:12 +08:00
|
|
|
|
2003-09-19 13:35:50 +08:00
|
|
|
install-programs: $(builddir)/phpize $(builddir)/php-config
|
2003-01-28 18:59:12 +08:00
|
|
|
@echo "Installing helper programs: $(INSTALL_ROOT)$(bindir)/"
|
|
|
|
@for prog in $(bin_SCRIPTS); do \
|
2005-10-13 18:02:59 +08:00
|
|
|
echo " program: $(program_prefix)$${prog}$(program_suffix)"; \
|
|
|
|
$(INSTALL) -m 755 $(builddir)/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \
|
2003-01-28 18:59:12 +08:00
|
|
|
done
|
2005-04-30 12:27:23 +08:00
|
|
|
@echo "Installing man pages: $(INSTALL_ROOT)$(mandir)/man1/"
|
|
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
|
|
|
|
@for page in $(man_PAGES); do \
|
2005-10-13 18:02:59 +08:00
|
|
|
echo " page: $(program_prefix)$${page}$(program_suffix).1"; \
|
|
|
|
$(INSTALL_DATA) $(builddir)/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \
|
2005-04-30 12:27:23 +08:00
|
|
|
done
|
|
|
|
|
2003-01-28 18:59:12 +08:00
|
|
|
$(builddir)/phpize: $(srcdir)/phpize.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|
|
|
|
|
|
|
|
$(builddir)/php-config: $(srcdir)/php-config.in $(top_builddir)/config.status
|
|
|
|
(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
|