- Fixed build on php-trunk
[m6w6/ext-http] / Makefile.frag
index e56cc687d1a4b6f9a42666cc3cfc976cb1c0058b..f019ecc059a561d858e39b8dda0fc2684438fd4b 100644 (file)
@@ -1,28 +1,13 @@
+# vim: noet ts=1 sw=1
+
 phpincludedir=$(prefix)/include/php
 
-HTTP_HEADER_FILES= \
-       phpstr/phpstr.h \
-       php_http_cache_api.h \
-       php_http_headers_api.h \
-       php_http_response_object.h \
-       php_http_util_object.h \
-       php_http.h \
-       php_http_request_api.h \
-       php_http_message_api.h \
-       php_http_send_api.h \
-       php_http_api.h \
-       php_http_date_api.h \
-       php_http_message_object.h \
-       php_http_std_defs.h \
-       php_http_auth_api.h \
-       php_http_exception_object.h \
-       php_http_request_object.h \
-       php_http_url_api.h
+install-http: install install-http-headers
 
 install-http-headers:
        @echo "Installing HTTP headers:          $(INSTALL_ROOT)$(phpincludedir)/ext/http/"
        @$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/http
-       @for f in $(HTTP_HEADER_FILES); do \
+       @for f in $(PHP_HTTP_HEADERS); do \
                if test -f "$(top_srcdir)/$$f"; then \
                        $(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
                elif test -f "$(top_builddir)/$$f"; then \
@@ -32,10 +17,7 @@ install-http-headers:
                elif test -f "$(top_builddir)/ext/http/$$f"; then \
                        $(INSTALL_DATA) $(top_builddir)/ext/http/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/http; \
                else \
-                       echo "WTF? $f $$f"; \
+                       echo "WTF? $$f"; \
                fi \
        done;
 
-# mini hack
-install: $(all_targets) $(install_targets) install-http-headers
-