summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarak <garakmon@gmail.com>2018-08-11 21:21:43 -0400
committerGitHub <noreply@github.com>2018-08-11 21:21:43 -0400
commit2cfc7bd358561aa88930a07e2a05d3c919c3beb3 (patch)
tree386b3ff3fb56c40615942258b22d962d2727b982
parent296a539664975b29f25a24958ec513a2ecd008c8 (diff)
change darwin check
-rw-r--r--Makefile9
1 files changed, 1 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 58a93bb55..38e8fd71e 100644
--- a/Makefile
+++ b/Makefile
@@ -31,14 +31,7 @@ LDFLAGS = -Map ../../$(MAP)
LIB := -L ../../tools/agbcc/lib -lgcc -lc
-ifeq ($(OS),Windows_NT)
- SHA1 := sha1sum -c
-else ifeq ($(shell uname -s),Darwin)
- SHA1 := shasum -c
-else
- SHA1 := sha1sum -c
-endif
-
+SHA1SUM := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
GFX := tools/gbagfx/gbagfx
AIF := tools/aif2pcm/aif2pcm
MID := $(abspath tools/mid2agb/mid2agb)