mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
28 lines
885 B
Makefile
28 lines
885 B
Makefile
phpincludedir=$(prefix)/include/php
|
|
|
|
PDO_HEADER_FILES= \
|
|
php_pdo.h \
|
|
php_pdo_driver.h
|
|
|
|
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; \
|
|
else \
|
|
echo "hmmm"; \
|
|
fi \
|
|
done;
|
|
|
|
# mini hack
|
|
install: $(all_targets) $(install_targets) install-pdo-headers
|
|
|
|
$(top_srcdir)/ext/pdo/pdo_sql_parser.c: $(top_srcdir)/ext/pdo/pdo_sql_parser.re
|
|
re2c -b $(top_srcdir)/ext/pdo/pdo_sql_parser.re > $@
|
|
|
|
$(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
|
|
re2c -b $(srcdir)/pdo_sql_parser.re > $@
|