prefix=@prefix@
exec_prefix=@exec_prefix@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@

install: installdirs
	$(INSTALL) -m 644 $(INSTALL_OPTS) "lib/Doctrine.php" $(DESTDIR)$(prefix)/lib/doctrine/lib/Doctrine.php
	@files=`find lib/Doctrine -mindepth 1 -type f ! -name "*.in" -and ! -name "Makefile"`; \
	for file in $$files; do \
		$(INSTALL) -m 644 $(INSTALL_OPTS) "$$file" $(DESTDIR)$(prefix)/lib/doctrine/"$$file"; \
	done
installdirs:
	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/doctrine
	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/doctrine/lib/
	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/doctrine/lib/Doctrine
	@dirs=`find lib/Doctrine -mindepth 1 -type d`; \
	for dir in $$dirs; do \
		$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(prefix)/lib/doctrine/"$$dir"; \
	done
