mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
change makefile to use phar and not source, if present
This commit is contained in:
parent
8a39d704c4
commit
38a52c5b0d
1 changed files with 3 additions and 6 deletions
|
@ -6,15 +6,12 @@ peardir=$(PEAR_INSTALLDIR)
|
|||
PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
|
||||
|
||||
install-pear-installer: $(top_builddir)/sapi/cli/php
|
||||
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php -d "$(peardir)" -b "$(bindir)" $(srcdir)/package-*.xml
|
||||
|
||||
install-pear-packages: $(top_builddir)/sapi/cli/php
|
||||
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.php -d "$(peardir)" -b "$(bindir)" $(srcdir)/packages/*.tar
|
||||
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.phar -d "$(peardir)" -b "$(bindir)"
|
||||
|
||||
install-pear:
|
||||
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
|
||||
@if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
|
||||
$(MAKE) -s install-pear-installer install-pear-packages; \
|
||||
@if $(srcdir)/install-pear.phar $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
|
||||
$(MAKE) -s install-pear-installer; \
|
||||
else \
|
||||
cat $(srcdir)/install-pear.txt; \
|
||||
exit 5; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue