xref: /PHP-7.4/scripts/Makefile.frag (revision 4e7064d1)
120c43285Sfoobar#
220c43285Sfoobar# Build environment install
320c43285Sfoobar#
420c43285Sfoobar
520c43285Sfoobarphpincludedir = $(includedir)/php
6d3f1bf4cSfoobarphpbuilddir = $(libdir)/build
720c43285Sfoobar
820c43285SfoobarBUILD_FILES = \
920c43285Sfoobar	scripts/phpize.m4 \
10480a3b08Sfoobar	build/libtool.m4 \
117e445ef3SPeter Kokot	build/ltmain.sh \
128e447eafSJoe Watkins	build/ax_check_compile_flag.m4 \
13518a9f8bSXinchen Hui	build/ax_gcc_func_attribute.m4 \
148a5ababeSAnatol Belski	build/php_cxx_compile_stdcxx.m4 \
152d031977SEli Schwartz	build/pkg.m4 \
162957651cSPeter Kokot	build/Makefile.global \
17*4e7064d1SPeter Kokot	build/php.m4 \
188a3ea48eSMarcus Boerger	run-tests.php
1920c43285Sfoobar
20c9f55292SfoobarBUILD_FILES_EXEC = \
21480a3b08Sfoobar	build/shtool \
227e445ef3SPeter Kokot	build/config.guess \
237e445ef3SPeter Kokot	build/config.sub
24c9f55292Sfoobar
2520c43285Sfoobarbin_SCRIPTS = phpize php-config
2627d2fe07Sfoobarman_PAGES = phpize php-config
2720c43285Sfoobar
2820c43285Sfoobarinstall-build:
2920c43285Sfoobar	@echo "Installing build environment:     $(INSTALL_ROOT)$(phpbuilddir)/"
3020c43285Sfoobar	@$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
31c9f55292Sfoobar	(cd $(top_srcdir) && \
32c9f55292Sfoobar	$(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \
33c9f55292Sfoobar	$(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
3420c43285Sfoobar
3555dfa372Sfoobarinstall-programs: $(builddir)/phpize $(builddir)/php-config
3620c43285Sfoobar	@echo "Installing helper programs:       $(INSTALL_ROOT)$(bindir)/"
37fcb09849SKalle Sommer Nielsen	@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
3820c43285Sfoobar	@for prog in $(bin_SCRIPTS); do \
3927d2fe07Sfoobar		echo "  program: $(program_prefix)$${prog}$(program_suffix)"; \
4027d2fe07Sfoobar		$(INSTALL) -m 755 $(builddir)/$${prog} $(INSTALL_ROOT)$(bindir)/$(program_prefix)$${prog}$(program_suffix); \
4120c43285Sfoobar	done
4240b6c60dSfoobar	@echo "Installing man pages:             $(INSTALL_ROOT)$(mandir)/man1/"
4340b6c60dSfoobar	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
4440b6c60dSfoobar	@for page in $(man_PAGES); do \
4527d2fe07Sfoobar		echo "  page: $(program_prefix)$${page}$(program_suffix).1"; \
4627d2fe07Sfoobar		$(INSTALL_DATA) $(builddir)/man1/$${page}.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)$${page}$(program_suffix).1; \
4740b6c60dSfoobar	done
486af7526cSChristopher Jones
4920c43285Sfoobar$(builddir)/phpize: $(srcdir)/phpize.in $(top_builddir)/config.status
5020c43285Sfoobar	(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
5120c43285Sfoobar
5220c43285Sfoobar$(builddir)/php-config: $(srcdir)/php-config.in $(top_builddir)/config.status
5320c43285Sfoobar	(CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status)
54