SHUTDOWN
[oweals/gnunet.git] / src / peerinfo-tool / Makefile.am
index 25885a34cd639e24452dbfb8eab1e014b36df607..b004a47322dd3f5ea8d6fd080f0213448b863b3b 100644 (file)
@@ -17,12 +17,26 @@ gnunet_peerinfo_SOURCES = \
 gnunet_peerinfo_LDADD = \
   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
   $(top_builddir)/src/transport/libgnunettransport.la \
+  $(top_builddir)/src/hello/libgnunethello.la \
   $(top_builddir)/src/util/libgnunetutil.la 
 
-
 if HAVE_PYTHON_PEXPECT
 check_SCRIPTS = \
  test_gnunet_peerinfo.py 
 endif
 
-TESTS = $(check_SCRIPTS) 
+if !DISABLE_TEST_RUN
+TESTS = $(check_SCRIPTS)
+endif
+
+do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
+
+test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
+       $(do_subst) < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py
+       chmod +x test_gnunet_peerinfo.py
+
+EXTRA_DIST = \
+  test_gnunet_peerinfo.py.in \
+  test_gnunet_peerinfo_data.conf
+
+CLEANFILES = $(check_SCRIPTS)