diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-08-09 16:08:15 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-08-09 16:40:31 +0100 |
commit | d7b1e68d8ef5249d3bce5de45d4fb882c399435a (patch) | |
tree | 17fd366c7eba06f62d0e6b94d455215750d8c9d5 /examples | |
parent | 8a21c43636459138bac752ed87329ef086ba9bc8 (diff) |
Fix examples' and tests' dependencies
All Automake products automatically depend on their SOURCES and
everything identifiable as a file in their LDADD, unless you set their
DEPENDENCIES, which take precedence (and have "replace", not "add",
semantics). As a result, setting DEPENDENCIES is actually harmful here:
it makes the tests and examples not depend on their own source code!
For the one test that has non-trivial extra dependencies,
use EXTRA_x_DEPENDENCIES, which has the desired semantics.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=67953
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Vivek Dasmohapatra <vivek@collabora.co.uk>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile.am | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index 6c18141..cddb8a0 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -12,21 +12,16 @@ EXAMPLES += wocky-unregister INCLUDES := -I$(top_builddir)/wocky wocky_dump_certificates_SOURCES = dump-certificates.c -wocky_dump_certificates_DEPENDENCIES = $(top_builddir)/wocky/libwocky.la wocky_dump_certificates_CFLAGS = $(TLS_CFLAGS) $(AM_CFLAGS) wocky_dump_certificates_LDADD = $(TLS_LIBS) $(LDADD) wocky_send_message_SOURCES = send-message.c -wocky_send_message_DEPENDENCIES = $(top_builddir)/wocky/libwocky.la wocky_receive_messages_SOURCES = receive-messages.c -wocky_receive_messages_DEPENDENCIES = $(top_builddir)/wocky/libwocky.la wocky_register_SOURCES = register.c -wocky_register_DEPENDENCIES = $(top_builddir)/wocky/libwocky.la wocky_unregister_SOURCES = unregister.c -wocky_unregister_DEPENDENCIES = $(top_builddir)/wocky/libwocky.la LDADD = \ |