xref: /PHP-8.4/sapi/cgi/Makefile.frag (revision 1ad08256)
1cgi: $(SAPI_CGI_PATH)
2
3$(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FASTCGI_OBJS) $(PHP_CGI_OBJS)
4	$(BUILD_CGI)
5
6install-cgi: $(SAPI_CGI_PATH)
7	@echo "Installing PHP CGI binary:        $(INSTALL_ROOT)$(bindir)/"
8	@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
9	@$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)
10	@echo "Installing PHP CGI man page:      $(INSTALL_ROOT)$(mandir)/man1/"
11	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
12	@$(INSTALL_DATA) sapi/cgi/php-cgi.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php-cgi$(program_suffix).1
13