From c3c0953fbd62d60dd592329aab525f5ed141b9cc Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Tue, 27 Feb 2018 22:47:10 +0000 Subject: [PATCH] compensate for windows path in env var --- dka64/rules/base_tools | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dka64/rules/base_tools b/dka64/rules/base_tools index 887aff4..3df38cf 100644 --- a/dka64/rules/base_tools +++ b/dka64/rules/base_tools @@ -7,15 +7,18 @@ UNAME_R := $(shell uname -r) ifneq (,$(findstring Darwin,$(UNAME_S))) export SHELL=/bin/bash endif + #--------------------------------------------------------------------------------- # path to tools #--------------------------------------------------------------------------------- -export PATH := $(DEVKITPRO)/devkitA64/bin:$(PATH) +DEVKITPATH=$(shell echo "$(DEVKITPRO)" | sed -e 's/^\([a-zA-Z]\):/\/\1/') +export PATH := $(DEVKITPATH)/devkitA64/bin:$(PATH) #--------------------------------------------------------------------------------- # add portlibs path #--------------------------------------------------------------------------------- -export PORTLIBS_PATH := $(DEVKITPRO)/portlibs +export PORTLIBS_PATH := $(DEVKITPATH)/portlibs + #--------------------------------------------------------------------------------- # the prefix on the compiler executables