More safe detection of cygwin path.
This commit is contained in:
parent
1fbc651bf3
commit
790f13a689
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ vpath %.s $(CONTIKI_CPU)/hal/micro/cortexm3
|
|||
|
||||
ifdef IAR
|
||||
# Check if we are in cygwin environment, so we must have paths like /cygdrive/c/... (checking TERM doesn't always work.)
|
||||
ifneq ($(shell ls /cygdrive 2>/dev/null),)
|
||||
ifneq (,$(findstring cygdrive,$(shell pwd)))
|
||||
${info Cygwin detected.}
|
||||
SEDCOMMAND = sed -e '1s,\($(OBJECTDIR)\\$*\)\.o: \(.\):,\1.o : /cygdrive/\l\2,g' -e '1!s,\($(OBJECTDIR)\\$*\)\.o: \(.\):, /cygdrive/\l\2,g' -e 's,\\\([^ ]\),/\1,g' -e 's,$$, \\,' -e '$$s, \\$$,,' < $(@:.o=.P) > $(@:.o=.d)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue