diff options
author | Anatol Belski <ab@php.net> | 2018-01-15 14:23:46 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-01-15 14:23:46 +0100 |
commit | 2d4fb56c1d333069fa847d6e7c1f415fa41f631e (patch) | |
tree | 3c8df2c79ce3f865a58983e1fac7c64c41a78824 | |
parent | 20233469737ba007a1bdd38b7acd5512a2e7d534 (diff) | |
download | php-git-2d4fb56c1d333069fa847d6e7c1f415fa41f631e.tar.gz |
Allow pecl like usage in ext/phar, closes #2955
-rw-r--r-- | ext/phar/Makefile.frag | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag index e58795deea..0e3713fc63 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 |