From 631484e2c7cb607701e77a4aae6f5656dae84c94 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 31 May 2008 20:02:57 +0000 Subject: [PATCH] - Add phar command as installable command --- configure.in | 4 +++- ext/phar/Makefile.frag | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 5867da17b7..87b556ddce 100644 --- a/configure.in +++ b/configure.in @@ -1350,12 +1350,14 @@ CXXFLAGS="$CXXFLAGS $standard_libtool_flag" if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then PHARCMD=pharcmd + PHARCMD_INSTALL=install-pharcmd else PHARCMD= + PHARCMD_INSTALL= fi; all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) $PHARCMD" -install_targets="$install_modules install-build install-headers install-programs $install_pear" +install_targets="$install_modules install-build install-headers install-programs $install_pear $PHARCMD_INSTALL" case $PHP_SAPI in cli) diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag index d693e8dd86..1fc1673875 100755 --- a/ext/phar/Makefile.frag +++ b/ext/phar/Makefile.frag @@ -23,3 +23,7 @@ $(builddir)/phar.phar: $(builddir)/phar.php $(srcdir)/phar/*.inc $(srcdir)/phar/ $$PHP -d phar.readonly=0 $(srcdir)/phar.php pack -f $(builddir)/phar.phar -a pharcommand -c auto -x CVS -p 0 -s $(srcdir)/phar/phar.php -h sha1 -b "$$BANG" $(srcdir)/phar/ @chmod +x $(builddir)/phar.phar +install-pharcmd: pharcmd + -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) + @$(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir) + -- 2.50.1