sniper          Sun Aug 31 06:54:17 2003 EDT

  Modified files:              
    /php-src/scripts    Makefile.frag 
  Log:
  - Single header files installation.
  
Index: php-src/scripts/Makefile.frag
diff -u php-src/scripts/Makefile.frag:1.6 php-src/scripts/Makefile.frag:1.7
--- php-src/scripts/Makefile.frag:1.6   Sat Aug 30 21:44:45 2003
+++ php-src/scripts/Makefile.frag       Sun Aug 31 06:54:16 2003
@@ -24,28 +24,34 @@
 
 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:
        [EMAIL PROTECTED] 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
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to