build profilers only if testing is enabled
authorDaniel Golle <daniel@makrotopia.org>
Sun, 5 Mar 2017 15:19:37 +0000 (16:19 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 5 Mar 2017 20:04:00 +0000 (21:04 +0100)
build fails of consensus and secretsharing fails otherwise
make[7]: *** No rule to make target '../../src/testbed/libgnunettestbed.la', needed by 'gnunet-consensus-profiler'.  Stop

src/consensus/Makefile.am
src/secretsharing/Makefile.am

index 2b1987fbcb52b10efedbebacaaf38ee24c6b6e29..c0205ee5dca4ad4bfda02ac12a8bb9f5d801328a 100644 (file)
@@ -18,8 +18,6 @@ if USE_COVERAGE
   AM_CFLAGS = -fprofile-arcs -ftest-coverage
 endif
 
-bin_PROGRAMS = \
- gnunet-consensus-profiler
 
 libexec_PROGRAMS = \
  gnunet-service-consensus
@@ -86,6 +84,9 @@ libgnunet_plugin_block_consensus_la_LDFLAGS = \
 
 
 if HAVE_TESTING
+bin_PROGRAMS = \
+ gnunet-consensus-profiler
+
 check_PROGRAMS = \
  test_consensus_api
 
index 485183e36f6c0a9f6db25aa3f582942b704145e4..4b9a06c40ebb6ea1c7d6fa402de527c3b2ef4618 100644 (file)
@@ -17,9 +17,6 @@ if USE_COVERAGE
 endif
 
 
-bin_PROGRAMS = \
- gnunet-secretsharing-profiler
-
 libexec_PROGRAMS = \
  gnunet-service-secretsharing
 
@@ -57,6 +54,9 @@ libgnunetsecretsharing_la_LDFLAGS = \
   $(GN_LIB_LDFLAGS)
 
 if HAVE_TESTING
+bin_PROGRAMS = \
+ gnunet-secretsharing-profiler
+
 check_PROGRAMS = \
  test_secretsharing_api