oneliner
authorMichael Wallner <mike@php.net>
Fri, 22 Jan 2016 19:18:35 +0000 (20:18 +0100)
committerMichael Wallner <mike@php.net>
Fri, 22 Jan 2016 19:18:35 +0000 (20:18 +0100)
Makefile

index c1990ac1dcf1554eaf17a85b3381df7cf2952051..cac484808b38842325a6527c2b27bc817c20e7c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,8 @@ $(with_config_file_scan_dir):
 
 ## -- PECL
 
+ext%: PECL_DIR:=$(curdir)
+
 .PHONY: pecl-check
 pecl-check:
        @if test -z "$(PECL)"; then echo "No pecl extension specified, e.g. PECL=pecl_http:http"; exit 1; fi
@@ -122,16 +124,13 @@ pecl: pecl-check php $(extdir)/$(PECL_SONAME).so | $(PECL_INI)
 ext-clean: pecl-clean
 
 .PHONY: ext-rm
-ext-rm: PECL_DIR:=$(curdir)
 ext-rm: pecl-rm
 
 .PHONY: ext
-ext: PECL_DIR:=$(curdir)
 ext: pecl-check pecl
        $(srcdir)/check-packagexml.php package.xml
 
 .PHONY: php
-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