File tree Expand file tree Collapse file tree 1 file changed +20
-14
lines changed
Expand file tree Collapse file tree 1 file changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -24,28 +24,34 @@ install-build:
2424
2525HEADER_DIRS = \
2626 / \
27- Zend \
28- TSRM \
29- ext/standard \
30- ext/session \
31- ext/xml \
32- ext/xml/expat \
33- main \
34- main/streams \
35- ext/mbstring \
36- ext/pgsql \
37- regex \
38- ext/sqlite/libsqlite/src
27+ Zend/ \
28+ TSRM/ \
29+ main/ \
30+ main/streams/ \
31+ regex/ \
32+ ext/standard/ \
33+ ext/session/ \
34+ ext/xml/ \
35+ ext/xml/expat/ \
36+ ext/mbstring/ \
37+ ext/sqlite/libsqlite/src/sqlite.h
3938
4039install-headers :
4140 -@for i in $(HEADER_DIRS ) ; do \
41+ i=` $( top_srcdir) /build/shtool path -d $$ i` ; \
4242 paths=" $$ paths $( INSTALL_ROOT) $( phpincludedir) /$$ i" ; \
4343 done ; \
4444 $(mkinstalldirs ) $$ paths && \
4545 echo " Installing header files: $( INSTALL_ROOT) $( phpincludedir) /" && \
4646 for i in $( HEADER_DIRS) ; do \
47- (cd $( top_srcdir) /$$ i && $( INSTALL_DATA) * .h $( INSTALL_ROOT) $( phpincludedir) /$$ i; \
48- cd $(top_builddir ) /$$ i && $(INSTALL_DATA ) * .h $(INSTALL_ROOT )$(phpincludedir ) /$$ i) 2> /dev/null || true ; \
47+ if test -f " $( top_srcdir) /$$ i" ; then \
48+ $(INSTALL_DATA ) $(top_srcdir ) /$$ i $(INSTALL_ROOT )$(phpincludedir ) /$$ i; \
49+ elif test -f " $( top_builddir) /$$ i" ; then \
50+ $(INSTALL_DATA ) $(top_builddir ) /$$ i $(INSTALL_ROOT )$(phpincludedir ) /$$ i; \
51+ else \
52+ (cd $( top_srcdir) /$$ i && $( INSTALL_DATA) * .h $( INSTALL_ROOT) $( phpincludedir) /$$ i; \
53+ cd $(top_builddir ) /$$ i && $(INSTALL_DATA ) * .h $(INSTALL_ROOT )$(phpincludedir ) /$$ i) 2> /dev/null || true ; \
54+ fi \
4955 done ; \
5056 cd $(top_srcdir ) /sapi/embed && $(INSTALL_DATA ) * .h $(INSTALL_ROOT )$(phpincludedir ) /main
5157
You can’t perform that action at this time.
0 commit comments