--- Makefile.frag.old	2017-11-26 13:04:55.890121000 +0400
+++ Makefile.frag	2017-11-26 13:05:34.226373000 +0400
@@ -1,5 +1,5 @@
 $(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); $(RE2C) --no-generation-date -b -o $(srcdir)/phar_path_check.c $(srcdir)/phar_path_check.re)
 
 pharcmd: $(builddir)/phar.php $(builddir)/phar.phar