mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
GNUMakeBuilder: "make" command controllable via environment
Some systems (notably BSDs) install GNU make as "gmake" - just invoking "make" and hoping it understands GNU arguments will not work there. Traditionally, an alternative "make" command can be selected with the MAKE environment variable. This changes GNUMakeBuilder (and by extension, AutoconfBuilder) to invoke the command given in $MAKE and fall back to "make" if MAKE has not been set.
This commit is contained in:
@@ -150,7 +150,9 @@ class Builder:
|
||||
# Concrete subclasses of abstract Builder interface
|
||||
|
||||
class GNUMakeBuilder(Builder):
|
||||
def __init__(self, commandName="make", formatName="GNUMake"):
|
||||
def __init__(self, commandName=None, formatName="GNUMake"):
|
||||
if commandName is None:
|
||||
commandName = os.environ.get("MAKE", "make")
|
||||
Builder.__init__(self, commandName=commandName, formatName=formatName)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user