com php-src: Allow pecl like usage in ext/phar, closes #2955: ext/phar/Makefile.frag
| From: | Anatol Belski | Date: | Mon, 15 Jan 2018 13:23:46 +0000 |
| Subject: | com php-src: Allow pecl like usage in ext/phar, closes #2955: ext/phar/Makefile.frag | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100886@lists.php.net to get a copy of this message | ||
Commit: 2d4fb56c1d333069fa847d6e7c1f415fa41f631e
Author: Anatol Belski <ab@php.net> Mon, 15 Jan 2018 14:23:46 +0100
Parents: 20233469737ba007a1bdd38b7acd5512a2e7d534
Branches: PHP-7.1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d4fb56c1d333069fa847d6e7c1f415fa41f631e
Log:
Allow pecl like usage in ext/phar, closes #2955
Bugs:
https://bugs.php.net/2955
Changed paths:
M ext/phar/Makefile.frag
Diff:
diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag
index e58795d..0e3713f 100644
--- a/ext/phar/Makefile.frag
+++ b/ext/phar/Makefile.frag
@@ -1,5 +1,10 @@
$(srcdir)/phar_path_check.c: $(srcdir)/phar_path_check.re
- @(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c
ext/phar/phar_path_check.re)
+ @(cd $(top_srcdir); \
+ if test -f ./php_phar.h; then \
+ $(RE2C) --no-generation-date -b -o phar_path_check.c phar_path_check.re; \
+ else \
+ $(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re; \
+ fi)
pharcmd: $(builddir)/phar.php $(builddir)/phar.phar