pokeheartgold/platform.mk

33 lines
390 B
Makefile

WSLENV ?= no
ifeq ($(WSLENV),)
NOWINE = 1
else
NOWINE = 0
endif
ifeq ($(OS),Windows_NT)
EXE := .exe
WINE :=
GREP := grep -P
SED := sed -r
SHA1SUM := sha1sum
else
EXE :=
WINE := wine
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
GREP := grep -E
SED := perl -p -e
SHA1SUM := shasum
else
GREP := grep -P
SED := sed -r
SHA1SUM := sha1sum
endif
endif
ifeq ($(NOWINE),1)
WINE :=
endif