$(srcdir)/php-$(PHP_VERSION)/configure: | $(srcdir)/php-versions.json
if test $(PHP_VERSION) = "master"; then \
- cd $(srcdir) && git clone --depth 1 -b master https://github.com/php/php-src php-master \
+ cd $(srcdir) && git clone --depth 1 -b master https://github.com/php/php-src php-master && cd php-master && ./buildconf \
else \
curl -Ss $(PHP_MIRROR)/php-$(PHP_VERSION).tar.bz2 | tar xj -C $(srcdir) \
fi