xref: /PHP-7.1/sapi/fpm/Makefile.frag (revision 7f6387b5)
1fpm: $(SAPI_FPM_PATH)
2
3$(SAPI_FPM_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FASTCGI_OBJS) $(PHP_FPM_OBJS)
4	$(BUILD_FPM)
5
6install-fpm: $(SAPI_FPM_PATH)
7	@echo "Installing PHP FPM binary:        $(INSTALL_ROOT)$(sbindir)/"
8	@$(mkinstalldirs) $(INSTALL_ROOT)$(sbindir)
9	@$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/log
10	@$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run
11	@$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
12
13	@if test -f "$(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf"; then \
14		echo "Installing PHP FPM defconfig:     skipping"; \
15	else \
16		echo "Installing PHP FPM defconfig:     $(INSTALL_ROOT)$(sysconfdir)/" && \
17		$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d; \
18		$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default; \
19		$(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default; \
20	fi
21
22	@echo "Installing PHP FPM man page:      $(INSTALL_ROOT)$(mandir)/man8/"
23	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8
24	@$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8
25
26	@echo "Installing PHP FPM status page:   $(INSTALL_ROOT)$(datadir)/fpm/"
27	@$(mkinstalldirs) $(INSTALL_ROOT)$(datadir)/fpm
28	@$(INSTALL_DATA) sapi/fpm/status.html $(INSTALL_ROOT)$(datadir)/fpm/status.html
29