Skip to content

Commit

Permalink
fix: adjust makefile to work on OSX (#31)
Browse files Browse the repository at this point in the history
The combination of `if` and `ONESHELL` doesn't work with the ancient
version of make on OSX. This should be a sufficient workaround.
  • Loading branch information
jta authored Oct 23, 2023
1 parent 4e9cd37 commit 2235fe6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ SAM_CONFIG_ENV ?= default
DEBUG_TESTS ?= 0

define check_var
@if [ -z "$($1)" ]; then
echo >&2 "Please set the $1 variable";
exit 2;
fi
@[[ -n "$($1)" ]] || (echo >&2 "The environment variable '$1' is not set." && exit 2)
endef

SUBDIR = $(shell ls apps)
Expand Down

0 comments on commit 2235fe6

Please sign in to comment.