Skip to content

Commit

Permalink
fix: macos compatibility (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Tronje Krop <[email protected]>
  • Loading branch information
tkrop committed Oct 30, 2024
1 parent f0ac228 commit 582cbcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ jobs:
env:
BASH_COMPAT: 3.2
run: |-
brew install make;
export PATH="/opt/homebrew/opt/make/libexec/gnubin:${PATH}";
make --version;
make --file=config/Makefile.base --trace test-self
make --version
make --file=config/Makefile.base test-self
release:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions config/Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
SHELL := /bin/bash

# Setup variables for special purposes.
NULL :=
COMMA := ,
SPACE := $(NULL) $(NULL)
TAB := $(NULL) $(NULL)
SPACE := $(SPACE) $(SPACE)
TAB := $(TAB) $(TAB)
define NEWLINE


Expand Down Expand Up @@ -46,7 +45,6 @@ endif

# System depdendent helper functions.
ifeq ("$(shell uname)","Linux")
MAKESHELL := PATH=$(PATH) /bin/bash
else ifeq ($(shell uname),Darwin)
path-setup = $(shell \
if [ "$(1)" == "opt" ]; then \
Expand All @@ -62,7 +60,9 @@ else ifeq ($(shell uname),Darwin)
export PATH := $(call path-setup,opt,gsed,sed,$(PATH))
export PATH := $(call path-setup,opt,make,make,$(PATH))
# Ensure export of path to $(shell ...) in gmake 3.81.
MAKESHELL := PATH=$(PATH) /bin/bash
MAKESHELL := PATH="$(PATH)" /bin/bash
SHELL := PATH="$(PATH)" /bin/bash
# .ONESHELL:
else
$(call cerror,unsupported operating system [$(shell uname --all)])
endif
Expand Down

0 comments on commit 582cbcd

Please sign in to comment.