#!/bin/sh

[ "x$1" != "x" ] && MIDGARD_PATH="=$1"

[ -f Makefile ] && make distclean
rm -f preparser-scanner.c preparser-parser.c preparser-parser.h
phpize && ./configure --with-midgard$MIDGARD_PATH && make install
