- bump version
[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_exception_object.h \
18 php_http_request_object.h \
19 php_http_requestpool_object.h \
20 php_http_url_api.h
21
22 install-http-headers:
23 @echo "Installing HTTP headers: $(INSTALL_ROOT)$(phpincludedir)/ext/http/"
24 @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/http
25 @for f in $(HTTP_HEADER_FILES); do \
26 if test -f "$(top_srcdir)/$$f"; then \
27 $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
28 elif test -f "$(top_builddir)/$$f"; then \
29 $(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
30 elif test -f "$(top_srcdir)/ext/http/$$f"; then \
31 $(INSTALL_DATA) $(top_srcdir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
32 elif test -f "$(top_builddir)/ext/http/$$f"; then \
33 $(INSTALL_DATA) $(top_builddir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
34 else \
35 echo "WTF? $f $$f"; \
36 fi \
37 done;
38
39 # mini hack
40 install: $(all_targets) $(install_targets) install-http-headers
41