]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Restructured Makefile.am to have less duplicated lines for the test suite.
authorStephan Bosch <stephan@dovecot.fi>
Mon, 20 Jun 2016 00:41:37 +0000 (02:41 +0200)
committerStephan Bosch <stephan@dovecot.fi>
Mon, 20 Jun 2016 00:41:37 +0000 (02:41 +0200)
src/lib-http/Makefile.am

index 73941e8f4eaaa1136bb16d1172e9f270f46e01e9..a1c972d8ede5b88bc896d5d888002371af1f2819 100644 (file)
@@ -132,16 +132,14 @@ test_http_request_parser_LDADD = \
        $(test_libs)
 test_http_request_parser_DEPENDENCIES = $(test_deps)
 
-test_http_payload_SOURCES = test-http-payload.c
-test_http_payload_LDFLAGS = -export-dynamic
-test_http_payload_LDADD = \
+test_http_libs = \
        libhttp.la \
        ../lib-dns/libdns.la \
        ../lib-ssl-iostream/libssl_iostream.la \
        ../lib-master/libmaster.la \
        ../lib-settings/libsettings.la \
        $(test_libs)
-test_http_payload_DEPENDENCIES = \
+test_http_deps = \
        libhttp.la \
        ../lib-dns/libdns.la \
        ../lib-ssl-iostream/libssl_iostream.la \
@@ -149,56 +147,33 @@ test_http_payload_DEPENDENCIES = \
        ../lib-settings/libsettings.la \
        $(test_deps)
 
+test_http_payload_SOURCES = test-http-payload.c
+test_http_payload_LDFLAGS = -export-dynamic
+test_http_payload_LDADD = \
+       $(test_http_libs)
+test_http_payload_DEPENDENCIES = \
+       $(test_http_deps)
+
 test_http_client_SOURCES = test-http-client.c
 test_http_client_LDFLAGS = -export-dynamic
 test_http_client_LDADD = \
-       libhttp.la \
-       ../lib-dns/libdns.la \
-       ../lib-ssl-iostream/libssl_iostream.la \
-       ../lib-master/libmaster.la \
-       ../lib-settings/libsettings.la \
-       $(test_libs)
+       $(test_http_libs)
 test_http_client_DEPENDENCIES = \
-       libhttp.la \
-       ../lib-dns/libdns.la \
-       ../lib-ssl-iostream/libssl_iostream.la \
-       ../lib-master/libmaster.la \
-       ../lib-settings/libsettings.la \
-       $(test_deps)
+       $(test_http_deps)
 
 test_http_client_errors_SOURCES = test-http-client-errors.c
 test_http_client_errors_LDFLAGS = -export-dynamic
 test_http_client_errors_LDADD = \
-       libhttp.la \
-       ../lib-dns/libdns.la \
-       ../lib-ssl-iostream/libssl_iostream.la \
-       ../lib-master/libmaster.la \
-       ../lib-settings/libsettings.la \
-       $(test_libs)
+       $(test_http_libs)
 test_http_client_errors_DEPENDENCIES = \
-       libhttp.la \
-       ../lib-dns/libdns.la \
-       ../lib-ssl-iostream/libssl_iostream.la \
-       ../lib-master/libmaster.la \
-       ../lib-settings/libsettings.la \
-       $(test_deps)
+       $(test_http_deps)
 
 test_http_server_SOURCES = test-http-server.c
 test_http_server_LDFLAGS = -export-dynamic
 test_http_server_LDADD = \
-       libhttp.la \
-       ../lib-dns/libdns.la \
-       ../lib-ssl-iostream/libssl_iostream.la \
-       ../lib-master/libmaster.la \
-       ../lib-settings/libsettings.la \
-       $(test_libs)
+       $(test_http_libs)
 test_http_server_DEPENDENCIES = \
-       libhttp.la \
-       ../lib-dns/libdns.la \
-       ../lib-ssl-iostream/libssl_iostream.la \
-       ../lib-master/libmaster.la \
-       ../lib-settings/libsettings.la \
-       $(test_deps)
+       $(test_http_deps)
 
 check: check-am check-test
 check-test: all-am