summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/phar/Makefile.frag5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag
index c6017a73c2..61627de967 100755
--- a/ext/phar/Makefile.frag
+++ b/ext/phar/Makefile.frag
@@ -2,7 +2,10 @@
$(srcdir)/phar_path_check.c: $(srcdir)/phar_path_check.re
$(RE2C) -b -o $(srcdir)/phar_path_check.c $(srcdir)/phar_path_check.re)
-pharcmd: $(builddir)/phar.phar
+pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
+
+$(builddir)/phar.php: $(srcdir)/phar/*.inc $(srcdir)/phar/*.php
+ php $(srcdir)/build_precommand.php > $(builddir)/phar.php
$(builddir)/phar.phar: $(srcdir)/phar/*.inc $(srcdir)/phar/*.php
php -d phar.readonly=0 $(srcdir)/phar.php pack -f $(builddir)/phar.phar -a pharcommand -c auto -x CVS -p 0 -s $(srcdir)/phar/phar.php -h sha1 $(srcdir)/phar/