Change-Id: Iaf3a42ba72698fc1d32c7296b428e5fefcb4cc20
# Set DESTDIR if it isn't given
DESTDIR?=/
-.PHONY : all clean install test
+.PHONY : all clean install test python python3
all :
python ./setup.py build
clean :
-rm -rf build/ src/paho/mqtt/__pycache__ src/paho/mqtt/*.pyc src/paho/__pycache__ src/paho/*.pyc
-test :
- $(MAKE) -C test test
+python :
+ $(MAKE) -C test python
+
+python3 :
+ $(MAKE) -C test python3
+
+test : python python3
-.PHONY: all test clean reallyclean
+.PHONY: all test clean reallyclean python python3
all :
-test :
- $(MAKE) -C lib test
+python :
+ $(MAKE) -C lib python
+
+python3 :
+ $(MAKE) -C lib python3
+
+test : python python3
clean :
$(MAKE) -C lib clean