--- php/lib/Makefile.orig 2013-06-02 12:11:06.451195440 +0000 +++ php/lib/Makefile 2013-06-02 12:16:29.249191742 +0000 @@ -167,7 +167,8 @@ @echo "Installing generated code" @for i in $(MODULES) ; \ do \ - $(INSTALL_DATA) -r $$i $(DESTDIR)$(install_phpdir) ; \ + mkdir -p $(DESTDIR)$(install_phpdir)/$$i ; \ + $(INSTALL_DATA) $$i/*.php $(DESTDIR)$(install_phpdir)/$$i ; \ done @for i in $(MODULE_SRCS) ; \ do \