xref: /PHP-5.3/scripts/Makefile.frag (revision 00fabe55)
1
2#
3# Build environment install
4#
5
6phpincludedir = $(includedir)/php
7phpbuilddir = $(libdir)/build
8
9BUILD_FILES = \
10	scripts/phpize.m4 \
11	build/mkdep.awk \
12	build/scan_makefile_in.awk \
13	build/libtool.m4 \
14	Makefile.global \
15	acinclude.m4 \
16	ltmain.sh \
17	run-tests.php
18
19BUILD_FILES_EXEC = \
20	build/shtool \
21	config.guess \
22	config.sub
23
24bin_SCRIPTS = phpize php-config
25man_PAGES = phpize php-config
26
27install-build:
28	@echo "Installing build environment:     $(INSTALL_ROOT)$(phpbuilddir)/"
29	@$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
30	(cd $(top_srcdir) && \
31	$(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \
32	$(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
33
34install-programs: $(builddir)/phpize $(builddir)/php-config
35	@echo "Installing helper programs:       $(INSTALL_ROOT)$(bindir)/"
36	@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
37	@for prog in $(bin_SCRIPTS); do \
38		echo "  program: $(program_prefix)$${prog}$(program_suffix)"; \
39		$(INSTALL) -m 755 $(builddir)/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \
40	done
41	@echo "Installing man pages:             $(INSTALL_ROOT)$(mandir)/man1/"
42	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
43	@for page in $(man_PAGES); do \
44		echo "  page: $(program_prefix)$${page}$(program_suffix).1"; \
45		$(INSTALL_DATA) $(builddir)/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \
46	done
47
48$(builddir)/phpize: $(srcdir)/phpize.in $(top_builddir)/config.status
49	(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
50
51$(builddir)/php-config: $(srcdir)/php-config.in $(top_builddir)/config.status
52	(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
53