# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project
"""
Make-based build system
"""
from rez.build_system import BuildSystem
import os.path
[docs]class MakeBuildSystem(BuildSystem):
[docs] @classmethod
def name(cls):
return "make"
[docs] @classmethod
def is_valid_root(cls, path, package=None):
return os.path.isfile(os.path.join(path, "Makefile"))
def __init__(self, working_dir, opts=None, package=None, write_build_scripts=False,
verbose=False, build_args=[], child_build_args=[]):
super(MakeBuildSystem, self).__init__(working_dir)
raise NotImplementedError
[docs]def register_plugin():
return MakeBuildSystem