fix
[oweals/gnunet.git] / src / hello / Makefile.am
index 328a88a48a5c79e8f31d4288d31e7317f4861c87..79003301b8be023c86ba8240653bf04c74ff872f 100644 (file)
@@ -1,3 +1,4 @@
+# This Makefile.am is in the public domain
 AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 if MINGW
@@ -28,28 +29,25 @@ check_PROGRAMS = \
  test_friend_hello
 
 if ENABLE_TEST_RUN
-TESTS_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
 TESTS = $(check_PROGRAMS)
 endif
 
 test_hello_SOURCES = \
  test_hello.c
 test_hello_LDADD = \
$(top_builddir)/src/hello/libgnunethello.la \
+ libgnunethello.la \
  $(top_builddir)/src/util/libgnunetutil.la  
 
 test_friend_hello_SOURCES = \
  test_friend_hello.c
 test_friend_hello_LDADD = \
$(top_builddir)/src/hello/libgnunethello.la \
+ libgnunethello.la \
  $(top_builddir)/src/util/libgnunetutil.la  
 
 gnunet_hello_SOURCES = \
  gnunet-hello.c
 gnunet_hello_LDADD = \
- $(top_builddir)/src/hello/libgnunethello.la \
- $(top_builddir)/src/util/libgnunetutil.la  
-gnunet_hello_DEPENDENCIES = \
  libgnunethello.la \
- $(top_builddir)/src/util/libgnunetutil.la
+ $(top_builddir)/src/util/libgnunetutil.la