Skip to content

Commit 2d4fb56

Browse files
committed
Allow pecl like usage in ext/phar, closes #2955
1 parent 2023346 commit 2d4fb56

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/phar/Makefile.frag

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
$(srcdir)/phar_path_check.c: $(srcdir)/phar_path_check.re
2-
@(cd $(top_srcdir); $(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re)
2+
@(cd $(top_srcdir); \
3+
if test -f ./php_phar.h; then \
4+
$(RE2C) --no-generation-date -b -o phar_path_check.c phar_path_check.re; \
5+
else \
6+
$(RE2C) --no-generation-date -b -o ext/phar/phar_path_check.c ext/phar/phar_path_check.re; \
7+
fi)
38

49
pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
510

0 commit comments

Comments
 (0)