- rename http_absolute_uri to http_build_uri (complements http_build_query)
[m6w6/ext-http] / Makefile.frag
1 phpincludedir=$(prefix)/include/php
2
3 install-http-headers:
4 @echo "Installing HTTP headers: $(INSTALL_ROOT)$(phpincludedir)/ext/http/"
5 @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/http
6 @for f in $(HTTP_HEADER_FILES); do \
7 if test -f "$(top_srcdir)/$$f"; then \
8 $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
9 elif test -f "$(top_builddir)/$$f"; then \
10 $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
11 elif test -f "$(top_srcdir)/ext/http/$$f"; then \
12 $(INSTALL_DATA) $(top_srcdir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
13 elif test -f "$(top_builddir)/ext/http/$$f"; then \
14 $(INSTALL_DATA) $(top_builddir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
15 else \
16 echo "WTF? $f $$f"; \
17 fi \
18 done;
19
20 # mini hack
21 install: $(all_targets) $(install_targets) install-http-headers
22