diff options
author | foobar <sniper@php.net> | 2005-05-07 02:51:53 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-05-07 02:51:53 +0000 |
commit | 626253940ea0c246984e277b6786b4950b69e3cc (patch) | |
tree | b5cc4006315847c774ea646c8839b4a2531cc823 /ext/pdo | |
parent | deacfcefc2cce245ef08ef949a21aa2bb0f32fd0 (diff) | |
download | php-git-626253940ea0c246984e277b6786b4950b69e3cc.tar.gz |
- Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/Makefile.frag | 32 | ||||
-rwxr-xr-x | ext/pdo/config.m4 | 2 |
2 files changed, 1 insertions, 33 deletions
diff --git a/ext/pdo/Makefile.frag b/ext/pdo/Makefile.frag deleted file mode 100644 index 9af532d833..0000000000 --- a/ext/pdo/Makefile.frag +++ /dev/null @@ -1,32 +0,0 @@ -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; \ - 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 - -#$(top_srcdir)/ext/pdo/pdo_sql_parser.c: $(top_srcdir)/ext/pdo/pdo_sql_parser.re -# exit 0; re2c -b $(top_srcdir)/ext/pdo/pdo_sql_parser.re > $@ - -#$(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re -# exit 0; re2c -b $(srcdir)/pdo_sql_parser.re > $@ - diff --git a/ext/pdo/config.m4 b/ext/pdo/config.m4 index 425aaffe3e..2441499a74 100755 --- a/ext/pdo/config.m4 +++ b/ext/pdo/config.m4 @@ -51,5 +51,5 @@ for more detail on this issue. esac fi PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared) - PHP_ADD_MAKEFILE_FRAGMENT + PHP_INSTALL_HEADERS(ext/pdo, [php_pdo.h php_pdo_driver.h]) fi |