mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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
|
PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0
|
||||||
|
|
||||||
install-pear-installer: $(top_builddir)/sapi/cli/php
|
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
|
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear.phar -d "$(peardir)" -b "$(bindir)"
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
install-pear:
|
install-pear:
|
||||||
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
|
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
|
||||||
@if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
|
@if $(srcdir)/install-pear.phar $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
|
||||||
$(MAKE) -s install-pear-installer install-pear-packages; \
|
$(MAKE) -s install-pear-installer; \
|
||||||
else \
|
else \
|
||||||
cat $(srcdir)/install-pear.txt; \
|
cat $(srcdir)/install-pear.txt; \
|
||||||
exit 5; \
|
exit 5; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue