X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=Makefile;h=972be2d50d3b5ca453e30cbbffd1fb5012f1f8eb;hb=c7e08833ec313ed5b92a9ac30283e4f183480f3b;hp=9f892d1ce9260d40ef10c343e4425056cc874d93;hpb=41ff3b66072630bfe5d9cec3e2980b508f5eafd6;p=m6w6%2Ftravis-pecl diff --git a/Makefile b/Makefile index 9f892d1..972be2d 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,11 @@ $(srcdir)/php-versions.json: $(srcdir)/php-version.php curl -Sso $@ "http://php.net/releases/index.php?json&version=5&max=-1" $(srcdir)/php-$(PHP_VERSION)/configure: | $(srcdir)/php-versions.json - curl -Ss $(PHP_MIRROR)/php-$(PHP_VERSION).tar.bz2 | tar xj -C $(srcdir) + if test $(PHP_VERSION) = "master"; then \ + cd $(srcdir) && git clone --depth 1 -b master https://github.com/php/php-src php-master && cd php-master && ./buildconf; \ + else \ + curl -Ss $(PHP_MIRROR)/php-$(PHP_VERSION).tar.bz2 | tar xj -C $(srcdir); \ + fi $(srcdir)/php-$(PHP_VERSION)/Makefile: $(srcdir)/php-$(PHP_VERSION)/configure | $(srcdir)/php-versions.json cd $(srcdir)/php-$(PHP_VERSION) && ./configure -C --prefix=$(prefix) @@ -122,3 +126,6 @@ ext: pecl-check $(srcdir)/pecl-$(PECL_EXTENSION) pecl .PHONY: php test: php REPORT_EXIT_STATUS=1 $(bindir)/php run-tests.php -q -p $(bindir)/php --set-timeout 300 --show-diff tests + +%.ext.phar: ../%.ext.phar $(PECL_INI) php + $< --prefix=$(prefix) --ini=$(PECL_INI)