xref: /PHP-7.2/sapi/cli/Makefile.frag (revision 60a69dae)
1cli: $(SAPI_CLI_PATH)
2
3$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS)
4	$(BUILD_CLI)
5
6install-cli: $(SAPI_CLI_PATH)
7	@echo "Installing PHP CLI binary:        $(INSTALL_ROOT)$(bindir)/"
8	@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
9	@$(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)
10	@echo "Installing PHP CLI man page:      $(INSTALL_ROOT)$(mandir)/man1/"
11	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
12	@$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1
13