Mon-collector kept being compiled even if monitoring was disabled during configure.
Fixes Issue 441. Signed-off-by: Michele Tartara <[email protected]> --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3d90220..9c26a9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -426,7 +426,11 @@ mandocrst = $(addprefix doc/man-,$(notdir $(manrst))) HS_BIN_PROGS=src/htools # Haskell programs to be installed in the MYEXECLIB dir -HS_MYEXECLIB_PROGS=src/mon-collector +if ENABLE_MONITORING + HS_MYEXECLIB_PROGS=src/mon-collector +else + HS_MYEXECLIB_PROGS= +endif # Haskell programs to compiled but not installed automatically # Usually they have their own specific installation rules -- 1.7.10.4
