Makefile.frag 1.8 KB

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