summaryrefslogtreecommitdiff
path: root/sapi/cli/Makefile.frag
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/Makefile.frag')
-rw-r--r--sapi/cli/Makefile.frag13
1 files changed, 13 insertions, 0 deletions
diff --git a/sapi/cli/Makefile.frag b/sapi/cli/Makefile.frag
new file mode 100644
index 0000000..8f4f400
--- /dev/null
+++ b/sapi/cli/Makefile.frag
@@ -0,0 +1,13 @@
+cli: $(SAPI_CLI_PATH)
+
+$(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS)
+ $(BUILD_CLI)
+
+install-cli: $(SAPI_CLI_PATH)
+ @echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/"
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
+ @$(INSTALL) -m 0755 $(SAPI_CLI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)
+ @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/"
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
+ @$(INSTALL_DATA) sapi/cli/php.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php$(program_suffix).1
+