temporary hack for gnunet-arm. given enough time processes seem to go away, so give...
[oweals/gnunet.git] / src / peerinfo-tool / Makefile.am
index 25885a34cd639e24452dbfb8eab1e014b36df607..8b74efefb9d1a66341e2dbf101d7ee0b36f73dbe 100644 (file)
@@ -19,10 +19,20 @@ gnunet_peerinfo_LDADD = \
   $(top_builddir)/src/transport/libgnunettransport.la \
   $(top_builddir)/src/util/libgnunetutil.la 
 
-
 if HAVE_PYTHON_PEXPECT
 check_SCRIPTS = \
  test_gnunet_peerinfo.py 
 endif
 
-TESTS = $(check_SCRIPTS) 
+TESTS = $(check_SCRIPTS)
+
+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
+
+EXTRADIST = \
+  test_gnunet_peerinfo.py.in
+
+CLEANFILES = $(check_SCRIPTS)