summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-02-12 04:04:36 +0000
committerfoobar <sniper@php.net>2003-02-12 04:04:36 +0000
commit5896410c8191f038bad84e62977ef50c80a252c3 (patch)
tree794e9371080a48bec9beca006e7dbb59c359fe74 /sapi/cli
parentde3b1acfc3e80f97815ed663e5fc4af968cb77f3 (diff)
downloadphp-git-5896410c8191f038bad84e62977ef50c80a252c3.tar.gz
- Added the man page installation
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/Makefile.frag4
-rw-r--r--sapi/cli/config.m42
2 files changed, 4 insertions, 2 deletions
diff --git a/sapi/cli/Makefile.frag b/sapi/cli/Makefile.frag
index e9a016ccad..4c97ebe914 100644
--- a/sapi/cli/Makefile.frag
+++ b/sapi/cli/Makefile.frag
@@ -4,4 +4,6 @@ $(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS)
install-cli: $(SAPI_CLI_PATH)
@echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/"
@$(INSTALL_CLI)
-
+ @echo "Installing PHP CLI man page: $(INSTALL_ROOT)$(mandir)/man1/"
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
+ @$(INSTALL_DATA) $(srcdir)/php.1 $(INSTALL_ROOT)$(mandir)/man1/php.1
diff --git a/sapi/cli/config.m4 b/sapi/cli/config.m4
index 9c10bd1633..439a636556 100644
--- a/sapi/cli/config.m4
+++ b/sapi/cli/config.m4
@@ -14,7 +14,7 @@ AC_ARG_ENABLE(cli,
])
if test "$PHP_SAPI_CLI" != "no"; then
- PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/cli/Makefile.frag)
+ PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/cli/Makefile.frag,$abs_srcdir/sapi/cli,sapi/cli)
SAPI_CLI_PATH=sapi/cli/php
PHP_SUBST(SAPI_CLI_PATH)