]> granicus.if.org Git - php/commitdiff
- Add phar command as installable command
authorMarcus Boerger <helly@php.net>
Sat, 31 May 2008 20:02:57 +0000 (20:02 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 31 May 2008 20:02:57 +0000 (20:02 +0000)
configure.in
ext/phar/Makefile.frag

index 5867da17b7bf2c8a796274f6ec2d1dead989fbb5..87b556ddceb675e9af75933a33360dc3621942ac 100644 (file)
@@ -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)
index d693e8dd86ae966ccf996dcca33a3e17c7d87074..1fc167387530546d18d89d04f9873570599f9909 100755 (executable)
@@ -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)
+