summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index c84eda2..ac934d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,9 @@
include_HEADERS = include/zmq.h include/zmq.hpp
-SUBDIRS = src examples python
-DIST_SUBDIRS = src examples python
+
+if BUILD_PYTHON
+DIR_P = python
+endif
+
+SUBDIRS = src examples $(DIR_P)
+DIST_SUBDIRS = src examples $(DIR_P)