--- /dev/null
+#! /bin/sh
+
+STD='make -f Makefile.am LEX=flex YACC="bison -y" srcdir=.'
+
+(cd libzend && eval "$STD zend-parser.c zend-scanner.c zend-scanner-cc.cc")
+eval "$STD configuration-parser.c configuration-scanner.c"
+(cd ext/standard && eval "$STD parsedate.c")
# to install
set -x
./buildconf --copy
-cd libzend
-bison -p zend -d zend-parser.y -o zend-parser.c
-flex -Pzend -ozend-scanner.c -i zend-scanner.l
-cd ..
-bison -p cfg -d configuration-parser.y -o configuration-parser.c
-flex -Pcfg -oconfiguration-scanner.c -i configuration-scanner.l
+
+./genfiles
+
echo "/* Dummy File */" > ext/bcmath/number.c
echo "/* Dummy File */" > ext/bcmath/number.h