2005-05-14 20:06:54 +00:00
|
|
|
phpincludedir=$(prefix)/include/php
|
|
|
|
|
|
|
|
PDO_HEADER_FILES= \
|
|
|
|
php_pdo.h \
|
2013-06-04 14:49:16 +00:00
|
|
|
php_pdo_driver.h \
|
|
|
|
php_pdo_error.h
|
2005-05-14 20:06:54 +00:00
|
|
|
|
2012-04-18 20:45:59 +00:00
|
|
|
|
|
|
|
$(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
|
2012-12-06 08:28:35 +00:00
|
|
|
(cd $(top_srcdir); $(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re)
|
2012-04-18 20:45:59 +00:00
|
|
|
|
2005-05-14 20:06:54 +00:00
|
|
|
install-pdo-headers:
|
|
|
|
@echo "Installing PDO headers: $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/"
|
|
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo
|
|
|
|
@for f in $(PDO_HEADER_FILES); do \
|
|
|
|
if test -f "$(top_srcdir)/$$f"; then \
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
|
|
|
|
elif test -f "$(top_builddir)/$$f"; then \
|
|
|
|
$(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
|
|
|
|
elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
|
|
|
|
elif test -f "$(top_builddir)/ext/pdo/$$f"; then \
|
|
|
|
$(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
|
|
|
|
else \
|
|
|
|
echo "hmmm"; \
|
|
|
|
fi \
|
|
|
|
done;
|
|
|
|
|
|
|
|
# mini hack
|
|
|
|
install: $(all_targets) $(install_targets) install-pdo-headers
|
|
|
|
|