diff --git a/Makefile.am b/Makefile.am
index 47d313193..989691687 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,11 @@ SUBDIRS += src/man
 endif
 
 SUBDIRS += . src/tests/cwrap src/tests/test_CA \
-             src/tests/test_ECC_CA src/tools/analyzer
+             src/tests/test_ECC_CA
+
+if BUILD_PYTHON_BINDINGS
+SUBDIRS += src/tools/analyzer
+endif
 
 # Some old versions of automake don't define builddir
 builddir ?= .
