summaryrefslogtreecommitdiff
path: root/Makefile.global
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-11-21 23:08:02 (GMT)
committerfoobar <sniper@php.net>2005-11-21 23:08:02 (GMT)
commit7243d31ae025ee68fd19dc916f30d0e691a3293e (patch)
tree099c1835aa8881ab9aaadd8f7d3ec58e69d45b37 /Makefile.global
parent19ea8abd0979399878703c2f894dd82ee96907db (diff)
downloadphp-7243d31ae025ee68fd19dc916f30d0e691a3293e.tar.gz
MFH: - Fixed header installing under phpize builds
Diffstat (limited to 'Makefile.global')
-rw-r--r--Makefile.global28
1 files changed, 25 insertions, 3 deletions
diff --git a/Makefile.global b/Makefile.global
index 78c3567..86e6fc9 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -5,9 +5,6 @@ INSTALL_DATA = $(INSTALL) -m 644
DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
-CORE_HEADERS = Zend/ TSRM/ include/ main/ main/streams/ regex/ ext/standard/
-INSTALL_HEADERS = $(CORE_HEADERS) $(INSTALL_EXT_HEADERS)
-
all: $(all_targets)
@echo
@echo "Build complete."
@@ -45,6 +42,31 @@ install-modules: build-modules
@rm -f modules/*.la >/dev/null 2>&1
@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
+install-headers:
+ -@if test "$(INSTALL_HEADERS)"; then
+ for i in $(INSTALL_HEADERS); 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 $(INSTALL_HEADERS); do \
+ if test "$(PHP_PECL_EXTENSION)"; then \
+ src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
+ else \
+ src=$$i; \
+ fi; \
+ if test -f "$(top_srcdir)/$$src"; then \
+ $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ elif test -f "$(top_builddir)/$$src"; then \
+ $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ else \
+ (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+ cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
+ fi \
+ done; \
+ fi
+
install-su: install-pear
test: all