Browse Source

use gmake on systems where it is available (OpenBSD)

master
Lephenixnoir 2 months ago
parent
commit
a795a18b5a
Signed by: Lephenixnoir GPG Key ID: 1BBA026E13FC0495
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      giteapc/repos.py

+ 7
- 1
giteapc/repos.py View File

@ -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…
Cancel
Save