- typos & allow passing NULL as curl handle in http_request() again'
[m6w6/ext-http] / Makefile.frag
1 phpincludedir=$(prefix)/include/php
2
3 HTTP_HEADER_FILES= \
4 phpstr/phpstr.h \
5 php_http_cache_api.h \
6 php_http_headers_api.h \
7 php_http_response_object.h \
8 php_http_util_object.h \
9 php_http.h \
10 php_http_request_api.h \
11 php_http_message_api.h \
12 php_http_send_api.h \
13 php_http_api.h \
14 php_http_date_api.h \
15 php_http_message_object.h \
16 php_http_std_defs.h \
17 php_http_auth_api.h \
18 php_http_exception_object.h \
19 php_http_request_object.h \
20 php_http_requestpool_object.h \
21 php_http_url_api.h
22
23 install-http-headers:
24 @echo "Installing HTTP headers: $(INSTALL_ROOT)$(phpincludedir)/ext/http/"
25 @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/http
26 @for f in $(HTTP_HEADER_FILES); do \
27 if test -f "$(top_srcdir)/$$f"; then \
28 $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
29 elif test -f "$(top_builddir)/$$f"; then \
30 $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
31 elif test -f "$(top_srcdir)/ext/http/$$f"; then \
32 $(INSTALL_DATA) $(top_srcdir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
33 elif test -f "$(top_builddir)/ext/http/$$f"; then \
34 $(INSTALL_DATA) $(top_builddir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
35 else \
36 echo "WTF? $f $$f"; \
37 fi \
38 done;
39
40 # mini hack
41 install: $(all_targets) $(install_targets) install-http-headers
42