exec_prefix ?= $(prefix)
bindir = $(exec_prefix)/bin
srcdir := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
+ifdef TRAVIS_BUILD_DIR
+curdir ?= $(TRAVIS_BUILD_DIR)
+else
+curdir ?= .
+endif
enable_maintainer_zts ?= no
enable_debug ?= no
ext-clean: pecl-clean
.PHONY: ext-rm
-ext-rm: PECL_DIR:=$(CURDIR)
+ext-rm: PECL_DIR:=$(curdir)
ext-rm: pecl-rm
.PHONY: ext
-ext: PECL_DIR:=$(CURDIR)
+ext: PECL_DIR:=$(curdir)
ext: pecl-check pecl
$(srcdir)/check-packagexml.php package.xml
.PHONY: php
-test: PECL_DIR:=$(CURDIR)
+test: PECL_DIR:=$(curdir)
test: php
REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff tests