66# A single example or unit test source file generates its own executable
77# This program is called by a top level Makefile, but can also be used stand-alone for debugging
88# This program also generates testing.mk, examples.mk and dependencies.mk
9+ from __future__ import print_function
910import sys
1011import shutil as sh
1112import os
@@ -31,7 +32,7 @@ def Glob(pattern, directory,exclude='\B'):
3132
3233
3334def generate_test_mk (mk_path , test_path , group , TEST_DIR ):
34- print 'Generating makefiles in "' + mk_path + '" for tests in "' + test_path + '"'
35+ print ( 'Generating makefiles in "' + mk_path + '" for tests in "' + test_path + '"' )
3536 src_cu = Glob ("*.cu" , test_path , ".*testframework.cu$" )
3637 src_cxx = Glob ("*.cpp" , test_path )
3738 src_cu .sort ();
@@ -52,7 +53,7 @@ def generate_test_mk(mk_path, test_path, group, TEST_DIR):
5253 return [tests_all , dependencies_all ]
5354
5455def generate_example_mk (mk_path , example_path , group , EXAMPLE_DIR ):
55- print 'Generating makefiles in "' + mk_path + '" for examples in "' + example_path + '"'
56+ print ( 'Generating makefiles in "' + mk_path + '" for examples in "' + example_path + '"' )
5657 src_cu = Glob ("*.cu" , example_path )
5758 src_cxx = Glob ("*.cpp" , example_path )
5859 src_cu .sort ();
0 commit comments