def check(folder, file_postfix, make_prefix, split_current, split_number):
    return_code = 0
    re_ = re.compile('^{}/([a-zA-Z_]*){}$'.format(re.escape(folder), re.escape(file_postfix)))
    for ex in glob.glob('{}/*{}'.format(folder, file_postfix)):
        match = re_.search(ex)
        if ((match is not None) and (match.group(1) not in BLACKLIST)):
            if (split_current == 0):
                new_code = subprocess.call(['make', '.build/{}{}.check.timestamp'.format(make_prefix, match.group(1))])
                print('The command "make .build/{}{}.check.timestamp" exited with {}'.format(make_prefix, match.group(1), new_code))
                return_code = max(return_code, new_code)
            split_current = ((split_current + 1) % split_number)
    return (return_code, split_current)
def check(folder, file_postfix, make_prefix, split_current, split_number):
    return_code = 0
    re_ = re.compile('^{}/([a-zA-Z_]*){}$'.format(re.escape(folder), re.escape(file_postfix)))
    for ex in glob.glob('{}/*{}'.format(folder, file_postfix)):
        match = re_.search(ex)
        if ((match is not None) and (match.group(1) not in BLACKLIST)):
            if (split_current == 0):
                new_code = subprocess.call(['make', '.build/{}{}.check.timestamp'.format(make_prefix, match.group(1))])
                print('The command "make .build/{}{}.check.timestamp" exited with {}'.format(make_prefix, match.group(1), new_code))
                return_code = max(return_code, new_code)
            split_current = ((split_current + 1) % split_number)
    return (return_code, split_current)