Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 63fe768

Browse files
author
Rodrigo Moya
committed
[Build] Fix breakage when $PATH includes paths with espaces
1 parent 1a2643d commit 63fe768

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ CONFIG_MAKE=$(top_srcdir)/config.make
5353
%-recursive: $(CONFIG_MAKE)
5454
@export PKG_CONFIG_PATH="`pwd`/$(top_srcdir)/local-config:$(prefix)/lib/pkgconfig:$(prefix)/share/pkgconfig:$$PKG_CONFIG_PATH"; \
5555
export MONO_GAC_PREFIX="$(prefix):$$MONO_GAC_PREFIX"; \
56+
export PATH="$$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin"; \
5657
set . $$MAKEFLAGS; final_exit=:; \
5758
case $$2 in --unix) shift ;; esac; \
5859
case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
5960
for dir in $(SUBDIRS); do \
6061
case $$dir in \
61-
.) PATH="$(PATH):/Library/Frameworks/Mono.framework/Versions/Current/bin" $(MAKE) $*-local || { final_exit="exit 1"; $$dk; };;\
62-
*) (cd $$dir && PATH="$(PATH):/Library/Frameworks/Mono.framework/Versions/Current/bin" $(MAKE) $*) || { final_exit="exit 1"; $$dk; };;\
62+
.) $(MAKE) $*-local || { final_exit="exit 1"; $$dk; };;\
63+
*) (cd $$dir && $(MAKE) $*) || { final_exit="exit 1"; $$dk; };;\
6364
esac \
6465
done
6566
$$final_exit

0 commit comments

Comments
 (0)