Skip to content

Commit a8a4d79

Browse files
author
foobar
committed
- Always use the builddir!
1 parent a939717 commit a8a4d79

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

pear/Makefile.frag

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ peardir=$(PEAR_INSTALLDIR)
55
# Skip all php.ini files altogether
66
PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -ddetect_unicode=0
77

8-
install-pear-installer: $(top_builddir)/sapi/cli/php
9-
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(srcdir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)"
8+
install-pear-installer: $(SAPI_CLI_PATH)
9+
@$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)"
1010

1111
install-pear:
1212
@echo "Installing PEAR environment: $(INSTALL_ROOT)$(peardir)/"
13-
@if test ! -f $(srcdir)/install-pear-nozlib.phar; then \
14-
wget http://pear.php.net/install-pear-nozlib.phar -nd -P $(srcdir); \
13+
@if test ! -f $(builddir)/install-pear-nozlib.phar; then \
14+
if test -f $(srcdir)/install-pear-nozlib.phar; then \
15+
cp $(srcdir)/install-pear-nozlib.phar $(builddir)/install-pear-nozlib.phar; \
16+
else \
17+
wget http://pear.php.net/install-pear-nozlib.phar -nd -P $(builddir)/; \
18+
fi \
1519
fi
16-
@if test -f $(srcdir)/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
20+
@if test -f $(builddir)/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
1721
$(MAKE) -s install-pear-installer; \
1822
else \
1923
cat $(srcdir)/install-pear.txt; \

0 commit comments

Comments
 (0)