This Makefile.am was obviously never tested with 'make dist' or 'make
distcheck', because it refers to libtreecc.a with the in-tree paths.
When building out-of-tree, we have to use $(top_builddir) to refer to
the right location.

Signed-off-by: Robert Schwebel <[EMAIL PROTECTED]>

---

 Makefile.am |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

Index: tests/Makefile.am
===================================================================
--- tests/Makefile.am.orig
+++ tests/Makefile.am
@@ -83,14 +83,14 @@ EXTRA_DIST= run_tests \
 noinst_PROGRAMS = test_input test_parse test_output normalize
 
 test_input_SOURCES = test_input.c
-test_input_LDADD = ../libtreecc.a
+test_input_LDADD = $(top_builddir)/libtreecc.a
 
 test_parse_SOURCES = test_parse.c
-test_parse_LDADD = ../libtreecc.a
+test_parse_LDADD = $(top_builddir)/libtreecc.a
 
 test_output_SOURCES = test_output.c
-test_output_LDADD = ../libtreecc.a
+test_output_LDADD = $(top_builddir)/libtreecc.a
 
 normalize_SOURCES = normalize.c
 
-AM_CFLAGS = -I$(srcdir)/..
+AM_CFLAGS = -I$(top_srcdir)

--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers

Reply via email to