From 3c4ab0987b1dffa7c01c7536cd76a255e28ffa72 Mon Sep 17 00:00:00 2001 From: Roger Light Date: Mon, 21 Apr 2014 16:08:33 +0100 Subject: [PATCH] Allow separate Python2/Python3 testing. Change-Id: Iaf3a42ba72698fc1d32c7296b428e5fefcb4cc20 --- Makefile | 11 ++++++++--- test/Makefile | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 22b70d6..e4f367d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # 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 @@ -12,5 +12,10 @@ install : all 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 diff --git a/test/Makefile b/test/Makefile index 3642b8e..759623c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,9 +1,14 @@ -.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 -- 2.39.5