Define 'make' program via an environment variable

This commit is contained in:
Éloi Rivard 2019-05-24 15:42:34 +02:00 committed by Drew DeVault
parent 1aea8fdc22
commit e4b9f89a68
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ else:
"The $SRHT_PATH environment variable points to an invalid "
"directory: {}".format(srht_path))
subp = subprocess.run(["make", "SRHT_PATH=" + srht_path])
make = os.environ.get("MAKE", "make")
subp = subprocess.run([make, "SRHT_PATH=" + srht_path])
if subp.returncode != 0:
sys.exit(subp.returncode)