mirror of
https://git.planet-casio.com/Lephenixnoir/GiteaPC.git
synced 2024-12-28 04:23:40 +01:00
use gmake on systems where it is available (OpenBSD)
This commit is contained in:
parent
508c70fdcb
commit
a795a18b5a
1 changed files with 7 additions and 1 deletions
|
@ -138,8 +138,14 @@ class LocalRepo:
|
|||
# Make commands
|
||||
|
||||
def make(self, target, env=None):
|
||||
# Use GNU Make even on OpenBSD
|
||||
if shutil.which("gmake") is not None:
|
||||
command = "gmake"
|
||||
else:
|
||||
command = "make"
|
||||
|
||||
with ChangeDirectory(self.folder):
|
||||
return run(["make", "-f", "giteapc.make", target], env=env)
|
||||
return run([command, "-f", "giteapc.make", target], env=env)
|
||||
|
||||
def set_config(self, config):
|
||||
source = self.folder + f"/giteapc-config.make"
|
||||
|
|
Loading…
Reference in a new issue