diff options
author | foobar <sniper@php.net> | 2003-08-31 10:54:16 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-08-31 10:54:16 +0000 |
commit | 9a47ae68efd9c67e77b1d5e0a136a48e24e23c29 (patch) | |
tree | 7d555633318a1eb1899556deb2dee6c8a5ca6c84 /scripts/Makefile.frag | |
parent | d15ad4609d82d8b3e8c2450f092e608d5bda9361 (diff) | |
download | php-git-9a47ae68efd9c67e77b1d5e0a136a48e24e23c29.tar.gz |
- Single header files installation.
Diffstat (limited to 'scripts/Makefile.frag')
-rw-r--r-- | scripts/Makefile.frag | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/scripts/Makefile.frag b/scripts/Makefile.frag index 7129e455f8..945df2e75b 100644 --- a/scripts/Makefile.frag +++ b/scripts/Makefile.frag @@ -24,28 +24,34 @@ install-build: HEADER_DIRS = \ / \ - Zend \ - TSRM \ - ext/standard \ - ext/session \ - ext/xml \ - ext/xml/expat \ - main \ - main/streams \ - ext/mbstring \ - ext/pgsql \ - regex \ - ext/sqlite/libsqlite/src + Zend/ \ + TSRM/ \ + main/ \ + main/streams/ \ + regex/ \ + ext/standard/ \ + ext/session/ \ + ext/xml/ \ + ext/xml/expat/ \ + ext/mbstring/ \ + ext/sqlite/libsqlite/src/sqlite.h install-headers: -@for i in $(HEADER_DIRS); do \ + i=`$(top_srcdir)/build/shtool path -d $$i`; \ paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ done; \ $(mkinstalldirs) $$paths && \ echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ for i in $(HEADER_DIRS); do \ - (cd $(top_srcdir)/$$i && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ - cd $(top_builddir)/$$i && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + if test -f "$(top_srcdir)/$$i"; then \ + $(INSTALL_DATA) $(top_srcdir)/$$i $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + elif test -f "$(top_builddir)/$$i"; then \ + $(INSTALL_DATA) $(top_builddir)/$$i $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + else \ + (cd $(top_srcdir)/$$i && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ + cd $(top_builddir)/$$i && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ + fi \ done; \ cd $(top_srcdir)/sapi/embed && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/main |